[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua_getglobal function argument
- From: saito yutaka <melody.pea@...>
- Date: Wed, 8 Feb 2012 19:35:08 +0900
Hello .
I am trying to read lua.c to want know how lua works.
And I want to ask about lua_getglobal function.
I find a this code .
lua_getglobal(L, firstline ? "_PROMPT" : "_PROMPT2");
I know that this code means get a value PROMPT("> ") or PROMPT2(">> ") .
But why does it use underscore [ _ ] front of global names ?
Thanks.
Yutaka
http://saitolog.blogspot.com/