v/vlib/dl/dl.v

18 lines
226 B
V
Raw Normal View History

2020-05-01 19:34:27 +02:00
module dl
pub const (
version = 1
2020-12-15 17:55:04 +01:00
dl_ext = get_shared_library_extension()
2020-05-01 19:34:27 +02:00
)
pub fn get_shared_library_extension() string {
mut res := '.so'
$if macos {
res = '.dylib'
}
$if windows {
res = '.dll'
}
return res
}