From abfd630c6d7acdeaa13a2dfd747170e0e0e038be Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 15 Feb 2022 10:35:17 +1300 Subject: [PATCH] Remove comment on how to add new target lang This information really doesn't belong in lua.cxx, and is covered better in Doc/Manual/Extending.html already. --- Source/Modules/lua.cxx | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx index 4ba9cb8c3..f2cc6fc05 100644 --- a/Source/Modules/lua.cxx +++ b/Source/Modules/lua.cxx @@ -2225,36 +2225,6 @@ public: }; -/* NEW LANGUAGE NOTE:*********************************************** - in order to add you language into swig, you need to make the following changes: - - write this file (obviously) - - add into the makefile (not 100% clear on how to do this) - - edit swigmain.cxx to add your module - -near the top of swigmain.cxx, look for this code & add you own codes -======= begin change ========== -extern "C" { - Language *swig_tcl(void); - Language *swig_python(void); - //etc,etc,etc... - Language *swig_lua(void); // this is my code -} - - //etc,etc,etc... - -swig_module modules[] = { - {"-guile", swig_guile, "Guile"}, - {"-java", swig_java, "Java"}, - //etc,etc,etc... - {"-lua", swig_lua, "Lua"}, // this is my code - {NULL, NULL, NULL} // this must come at the end of the list -}; -======= end change ========== - -This is all that is needed - -NEW LANGUAGE NOTE:END ************************************************/ - /* ----------------------------------------------------------------------------- * swig_lua() - Instantiate module * ----------------------------------------------------------------------------- */