remove macros use in objects mofule
This commit is contained in:
parent
c6260f7c48
commit
9e2e7f5809
31 changed files with 362 additions and 386 deletions
|
|
@ -16,9 +16,9 @@ SUITE(Compiler) {
|
|||
TEST(Basic) {
|
||||
objTestModule.initialize();
|
||||
|
||||
{
|
||||
{
|
||||
// no errors
|
||||
auto method = NDO_CAST(MethodObject, NDO->create("method"));
|
||||
auto method = objects_api::cast<MethodObject>(NDO->create("method"));
|
||||
|
||||
method->mScript->mReadable->val = "print 1 * 20 + 10;";
|
||||
method->compile();
|
||||
|
|
@ -30,7 +30,7 @@ SUITE(Compiler) {
|
|||
|
||||
{
|
||||
// with errors
|
||||
auto method = NDO_CAST(MethodObject, NDO->create("method"));
|
||||
auto method = objects_api::cast<MethodObject>(NDO->create("method"));
|
||||
|
||||
method->mScript->mReadable->val = "print undefinedVariable;";
|
||||
method->compile();
|
||||
|
|
@ -42,7 +42,7 @@ SUITE(Compiler) {
|
|||
|
||||
objTestModule.deinitialize();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
TEST(ErrorHandling) {
|
||||
objTestModule.initialize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue