AltraMayor / AltraMayor/gatekeeper

An issue on calling luaL_get_ctypeid()

Aperta
#144 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
C
Stelle
1.6k
Fork
252
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In the pull request #89 , when I tried to call ``luaL_get_ctypeid()`` on ``struct gk_config *`` and ``struct gk_fib_dump_entry *``, both return values are the same (i.e., 166) even they are called at the same Lua state. However, they are expected to be different, but it is up to the LuaJIT to decide since ``luaL_get_ctypeid()`` literally calls LuaJIT to find out. The relevance of using the same Lua state is that these IDs are generated dynamically, so each added type will create a new ID.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.