Re: Lua wrappers[still no answer]

new topic     » topic index » view thread      » older message » newer message

why do you need to write a separate function? Can't you just write:

atom Shell32
if platform() = WIN32 then
 Shell32 = open_dll("shell32.dll")
elsif platform() = LINUX then
 Shell32 = open_dll("shell32.so")
else
 puts(1, "This is DOS32 output")
end if


Or similar - i don't know what the libraries are actually supposed to do!

Alex

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu