dl: add comments for the dl/example

This commit is contained in:
Delyan Angelov 2020-12-18 19:41:01 +02:00
parent c32547f382
commit 05f6e8b5aa
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 11 additions and 0 deletions

View file

@ -5,6 +5,8 @@ pub const (
dl_ext = get_shared_library_extension()
)
// get_shared_library_extension returns the platform dependent shared library extension
// i.e. .dll on windows, .so on most unixes, .dylib on macos.
pub fn get_shared_library_extension() string {
mut res := '.so'
$if macos {