mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
build(win): export extern symbols for use in FFI #22756
Makes `extern` variables accessible through ffi on Windows. Follow-up to https://github.com/neovim/neovim/pull/15999
This commit is contained in:
@@ -63,5 +63,14 @@ describe('ffi.cdef', function()
|
||||
nil
|
||||
)
|
||||
]=])
|
||||
|
||||
-- Check that extern symbols are exported and accessible
|
||||
eq(true, exec_lua[[
|
||||
local ffi = require('ffi')
|
||||
|
||||
ffi.cdef('uint64_t display_tick;')
|
||||
|
||||
return ffi.C.display_tick >= 0
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user