@@ -208,10 +208,10 @@ l_noret lua_State::throwBaseLevel(TStatus errcode) {
208208** ENCAPSULATION NOTE:
209209** This is now a lua_State method rather than a free function, following
210210** the C++ modernization (Phase 31). All state manipulation uses accessor
211- ** methods (getNCcalls , setErrorJmp, etc.) rather than direct field access.
211+ ** methods (getNumberOfCCalls , setErrorJmp, etc.) rather than direct field access.
212212*/
213213TStatus lua_State::rawRunProtected (Pfunc f, void *ud) {
214- l_uint32 oldnCcalls = getNCcalls ();
214+ l_uint32 oldnCcalls = getNumberOfCCalls ();
215215 lua_longjmp lj;
216216 lj.status = LUA_OK;
217217 lj.previous = getErrorJmp (); /* chain new error handler */
@@ -230,7 +230,7 @@ TStatus lua_State::rawRunProtected(Pfunc f, void *ud) {
230230 }
231231
232232 setErrorJmp (lj.previous ); /* restore old error handler */
233- setNCcalls (oldnCcalls);
233+ setNumberOfCCalls (oldnCcalls);
234234 return lj.status ;
235235}
236236
@@ -670,7 +670,7 @@ CallInfo* lua_State::preCall(StkId func, int nresults) {
670670// Convert to private lua_State method
671671void lua_State::cCall (StkId func, int nResults, l_uint32 inc) {
672672 CallInfo *ci_result;
673- getNCcallsRef () += inc;
673+ getNumberOfCCallsRef () += inc;
674674 if (l_unlikely (getCcalls (this ) >= LUAI_MAXCCALLS)) {
675675 checkstackp (this , 0 , func); /* free any use of EXTRA_STACK */
676676 luaE_checkcstack (this );
@@ -679,7 +679,7 @@ void lua_State::cCall(StkId func, int nResults, l_uint32 inc) {
679679 ci_result->callStatusRef () |= CIST_FRESH; /* mark that it is a "fresh" execute */
680680 luaV_execute (this , ci_result); /* call it */
681681 }
682- getNCcallsRef () -= inc;
682+ getNumberOfCCallsRef () -= inc;
683683}
684684
685685
@@ -902,10 +902,10 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs,
902902 }
903903 else if (L->getStatus () != LUA_YIELD) /* ended with errors? */
904904 return resume_error (L, " cannot resume dead coroutine" , nargs);
905- L->setNCcalls ((from) ? getCcalls (from) : 0 );
905+ L->setNumberOfCCalls ((from) ? getCcalls (from) : 0 );
906906 if (getCcalls (L) >= LUAI_MAXCCALLS)
907907 return resume_error (L, " C stack overflow" , nargs);
908- L->getNCcallsRef ()++;
908+ L->getNumberOfCCallsRef ()++;
909909 luai_userstateresume (L, nargs);
910910 api_checkpop (L, (L->getStatus () == LUA_OK) ? nargs + 1 : nargs);
911911 status = L->rawRunProtected ( resume, &nargs);
0 commit comments