Murga-Projects Forums
Fluid Syntax Analysis Hack - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Fluid Syntax Analysis Hack (/showthread.php?tid=291)


Fluid Syntax Analysis Hack - iGame3D - 02-26-2008 09:55 AM

When making code blocks in Fluid it complains about curly braces and quotation marks.
Even if they are in lua comments or legal lua commands.

Tobi did a quick and dirty hack to prevent it from doing so.
Here's how its done.

In your fltk/fluid directory
is a file called Fl_Function_Type.cxx
search for this:

Code:
const char *c_check(


replace this function

Code:
const char *c_check(const char *c, int type) {
  return 0;//Hack by Tobias Opfermann, disables Fluid syntax analysis to enable use of other languages in the code blocks.
  //return _c_check(c,type);
}


then to rebuild

Code:
cd <fltk folder>
make clean
./configure --enable-xft
make