mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen,checker: support simple voidptr casts in consts, without delaying the initialisation to _vinit (#15996)
This commit is contained in:
@@ -4,6 +4,8 @@ pub const version = 1
|
||||
|
||||
pub const dl_ext = get_shared_library_extension()
|
||||
|
||||
pub const rtld_next = voidptr(-1)
|
||||
|
||||
// get_shared_library_extension returns the platform dependent shared library extension
|
||||
// i.e. .dll on windows, .so on most unixes, .dylib on macos.
|
||||
[inline]
|
||||
|
||||
Reference in New Issue
Block a user