syntactic support for declaring additional Lua types

pull/81/head
Dibyendu Majumdar 9 years ago
parent 64fda17642
commit b884681ee9

@ -310,7 +310,7 @@ Everything else will just be dynamic type as in Lua. Ravi currently has syntacti
* string
* table
* function
* closure
* boolean
* userdata

@ -310,7 +310,7 @@ Everything else will just be dynamic type as in Lua. Ravi currently has syntacti
* string
* table
* function
* closure
* boolean
* userdata

@ -1127,7 +1127,7 @@ static ravitype_t declare_localvar(LexState *ls) {
tt = RAVI_TNUMINT;
else if (strcmp(str, "number") == 0)
tt = RAVI_TNUMFLT;
else if (strcmp(str, "function") == 0)
else if (strcmp(str, "closure") == 0)
tt = RAVI_TFUNCTION;
else if (strcmp(str, "userdata") == 0)
tt = RAVI_TUSERDATA;

Loading…
Cancel
Save