This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include "MetaPlug/generated/MetaPlug.hpp" | |
#include "main.hpp" | |
int main(int argc, char** argv) { | |
auto metaclass = CppMetaGen::GetMetaClassByName("TestClass"); | |
auto obj = new TestClass(); | |
obj->someField = 23; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "CC_Config.hpp" | |
using namespace CurryChakra; | |
// Shims for JS types | |
// JsValueRef | |
JsValueRef CppToJs(JsValueRef& value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Native method PrintSelf() called | |
13.500000 | |
2.500000 | |
Result -> 13.5 | |
test: 1.000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "main.hpp" | |
int main() { | |
const char* script = R"( | |
( | |
() => { | |
class Extended extends CppClass { | |
constructor() { | |
super(10, 10); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class TestParentClass { | |
abstract Test(): string; | |
} | |
class TestConcreteA { | |
Test() { | |
return "Called ConcreteA.Test()"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface State { | |
DoThing(): void; | |
} | |
class StandState implements State { | |
DoThing() { | |
console.log("Doing stand thing"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Project_Combo.h" | |
#include "GCAdapter.h" | |
#define ADAPTER_VENDOR_ID 0x057e | |
#define ADAPTER_PRODUCT_ID 0x0337 | |
GCAdapter::GCAdapter() { | |
// Clear controller plugged states | |
for (int i = 0; i < 4; i++) { | |
controllers[i].connected = GCPadState::STATE_NONE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ | |
Add | |
/ \ | |
1 4 | |
Start at print node, postorder traversal: | |
| Node: Print |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Success #stdin #stdout 0s 16072KB | |
76 | |
69 | |
FooBar | |
hey | |
there bud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
#include <functional> | |
#include <unordered_map> | |
template <typename T> | |
struct AutoPropMeta { | |
static AutoPropMeta<T>* GetInstance() { | |
static bool first = true; |
OlderNewer