MCPcopy Create free account
hub / github.com/defold/defold / read_number

Function read_number

engine/lua/src/lua/liolib.c:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275
276
277static int read_number (lua_State *L, FILE *f) {
278 lua_Number d;
279 if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) {
280 lua_pushnumber(L, d);
281 return 1;
282 }
283 else return 0; /* read fails */
284}
285
286
287static int test_eof (lua_State *L, FILE *f) {

Callers 1

g_readFunction · 0.85

Calls 1

lua_pushnumberFunction · 0.85

Tested by

no test coverage detected