Is there any way to count the amount of lua_getfield that exists in my code? If yes how?
I have a code with multiple lua_getfield as an example below:
lua_getfield(L, -1, "MAC");
lua_getfield(L, -1, "IP");
lua_getfield(L, -1, "PASSWORD");
I want to create a message to show the amount of lua_getfield being made reading the code in my C program, for example:
printf("There are %d lua_getfield", function);