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

Function PushTableLogPrint

engine/script/src/script_table.cpp:900–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898 }
899
900 void PushTableLogPrint(PushTableLogger& logger, char out[PUSH_TABLE_LOGGER_STR_SIZE])
901 {
902 memset(out, 0x0, PUSH_TABLE_LOGGER_STR_SIZE);
903 if (logger.m_Size == 0) {
904 return;
905 }
906
907 int t_c = ((int)logger.m_Cursor) - 1;
908 for (int32_t i = 0; i < logger.m_Size;)
909 {
910 if (t_c < 0)
911 t_c = PUSH_TABLE_LOGGER_CAPACITY + t_c;
912 t_c = t_c % PUSH_TABLE_LOGGER_CAPACITY;
913
914 int b = logger.m_Size - 1 - i++;
915 out[b] = logger.m_Log[t_c--];
916 }
917 }
918
919#define CHECK_PUSHTABLE_OOB(ELEMTYPE, LOGGER, BUFFER, BUFFER_END, COUNT, DEPTH) \
920 if (BUFFER > BUFFER_END) { \

Callers 4

LoadOldTSTRINGFunction · 0.85
LoadTSTRINGFunction · 0.85
DoPushTableFunction · 0.85
TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68