User forums > Help
code complete cannot list the lua's function
momocc:
my codeblocks cannot list the functions of lua.
i try to find out the reason why codeblocks cannot do it.
i found that there is a small difference between lua's function declaration and our usual practice.
Usually, we define a function like this:
--- Code: ---void func();
--- End code ---
???
but the defination in lua is:
--- Code: ---void (func)();
--- End code ---
so, the code completion cannot recognize the functions..
if i remove the brackets, the code completion will list the function name correctly
ollydbg:
Code::Blocks is a C/C++ IDE, and its codecompletion parser is also for C/C++ currently.
Lua language is not supported right now.
BTW: There is a FORTRAN codecompletion plugin for FORTRAN language. So we welcome user contribution for lua language. :)
momocc:
Oh, the way i expressed has some wrong, i mean the code completion cannot list the functions of lua's C API.
i am doing a lua binding library for c++, so i often need to call the lua's C API to achieve some features :P
ollydbg:
--- Quote from: momocc on April 20, 2012, 06:09:47 am ---Oh, the way i expressed has some wrong, i mean the code completion cannot list the functions of lua's C API.
i am doing a lua binding library for c++, so i often need to call the lua's C API to achieve some features :P
--- End quote ---
Still not clear about your idea. If you would like to show C API, should should have C code parsed by the CC's parser. Where is you C API declaration? Please give more details.
jarod42:
--- Code: ---int (bar_not_visible)();
int bar_visible();
void foo()
{
ba|Ctrl+Space
}
--- End code ---
code completion (for ba ) suggests only bar_visible, and not bar_not_visible.
Navigation
[0] Message Index
[#] Next page
Go to full version