[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Advice request to build C functions in a library for Lua5.1
- From: Bradley Smith <gmane@...>
- Date: Fri, 02 Nov 2007 15:45:52 -0700
Mark Edgar wrote:
Also, don't use LUALIB_API or LUA_API to mark functions in your code.
These macros are to mark functions in the Lua library.
What should be used instead?
Something is needed for cross-platform portability. For example, on
Windows, loading a module from a DLL requires the open function to be
declared with __declspec(dllexport).