| 340 | |
| 341 | |
| 342 | static const char *getMode (lua_State *L, int idx) { |
| 343 | const char *mode = luaL_optstring(L, idx, "bt"); |
| 344 | if (strchr(mode, 'B') != NULL) /* Lua code cannot use fixed buffers */ |
| 345 | luaL_argerror(L, idx, "invalid mode"); |
| 346 | return mode; |
| 347 | } |
| 348 | |
| 349 | |
| 350 | static int luaB_loadfile (lua_State *L) { |
no test coverage detected