Add more defined sections for nintendo switch
This commit is contained in:
parent
9b300a5c9c
commit
d3cf79e3e7
5 changed files with 45 additions and 16 deletions
|
|
@ -137,6 +137,28 @@ when defined(posix):
|
|||
proc symAddr(lib: LibHandle, name: cstring): pointer =
|
||||
return dlsym(lib, name)
|
||||
|
||||
elif defined(nintendoswitch):
|
||||
#
|
||||
# =========================================================================
|
||||
# Nintendo switch DevkitPro sdk does not have these. Raise an error if called.
|
||||
# =========================================================================
|
||||
#
|
||||
|
||||
proc dlclose(lib: LibHandle) =
|
||||
raise newException(OSError, "dlclose not implemented on Nintendo Switch!")
|
||||
proc dlopen(path: cstring, mode: int): LibHandle =
|
||||
raise newException(OSError, "dlopen not implemented on Nintendo Switch!")
|
||||
proc dlsym(lib: LibHandle, name: cstring): pointer =
|
||||
raise newException(OSError, "dlsym not implemented on Nintendo Switch!")
|
||||
proc loadLib(path: string, global_symbols=false): LibHandle =
|
||||
raise newException(OSError, "loadLib not implemented on Nintendo Switch!")
|
||||
proc loadLib(): LibHandle =
|
||||
raise newException(OSError, "loadLib not implemented on Nintendo Switch!")
|
||||
proc unloadLib(lib: LibHandle) =
|
||||
raise newException(OSError, "unloadLib not implemented on Nintendo Switch!")
|
||||
proc symAddr(lib: LibHandle, name: cstring): pointer =
|
||||
raise newException(OSError, "symAddr not implemented on Nintendo Switch!")
|
||||
|
||||
elif defined(windows) or defined(dos):
|
||||
#
|
||||
# =======================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue