NOTE: we don't generate actual bytecode for this test-data, so just pass in regular lua source instead.
| 29 | // NOTE: we don't generate actual bytecode for this test-data, so |
| 30 | // just pass in regular lua source instead. |
| 31 | static dmLuaDDF::LuaSource* LuaSourceFromText(const char *text) |
| 32 | { |
| 33 | static dmLuaDDF::LuaSource tmp; |
| 34 | memset(&tmp, 0x00, sizeof(tmp)); |
| 35 | tmp.m_Script.m_Data = (uint8_t*)text; |
| 36 | tmp.m_Script.m_Count = strlen(text); |
| 37 | tmp.m_Bytecode.m_Data = (uint8_t*)text; |
| 38 | tmp.m_Bytecode.m_Count = strlen(text); |
| 39 | tmp.m_Bytecode64.m_Data = (uint8_t*)text; |
| 40 | tmp.m_Bytecode64.m_Count = strlen(text); |
| 41 | tmp.m_Filename = "dummy"; |
| 42 | return &tmp; |
| 43 | } |
| 44 | |
| 45 | TEST_F(ScriptModuleTest, TestModule) |
| 46 | { |