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:
William S Fulton 2005-09-12 22:14:37 +00:00
commit b93b3593bf
5 changed files with 27 additions and 15 deletions

View file

@ -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 -----