Lua fixes to work on Unix as well as windows.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dfaaa959a6
commit
b93b3593bf
5 changed files with 27 additions and 15 deletions
|
|
@ -3,10 +3,13 @@
|
|||
-- This file illustrates class C++ interface generated
|
||||
-- by SWIG.
|
||||
|
||||
-- importing (lua doesnt have a nice way to do this)
|
||||
if example==nil then
|
||||
assert(loadlib("example.dll","Example_Init"))()
|
||||
-- importing (lua does not have a nice way to do this)
|
||||
loadlibrary = loadlib("example.so","Example_Init")
|
||||
if loadlibrary == nil then
|
||||
loadlibrary = loadlib("example.dll","Example_Init")
|
||||
end
|
||||
assert(loadlibrary, "could not find dynamic libray")
|
||||
loadlibrary()
|
||||
|
||||
----- Object creation -----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue