lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



hi,
I am using SWIG with LUA5.1, can i define multiple modules in a *.i file.

I tried it, but SWIG does not registe other modules but the first one.


eg,  interface.i
-------------------------------
%module relayer
%{
#include "relayer.h"
%}
void SetRelayer(uint32 relayerState);
void ResetRelayer(uint32 relayerState);
void ResetAllRelayer();

%module other
%{
#include "other.h"
%}
void fun1(uint32 a);
----------------------------------

regards
YOUZHI
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.