File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,9 @@ namespace sol {
568
568
runtime = LUA_ERRRUN,
569
569
memory = LUA_ERRMEM,
570
570
handler = LUA_ERRERR,
571
+ #if SOL_LUA_VERSION < 504
571
572
gc = LUA_ERRGCMM,
573
+ #endif
572
574
syntax = LUA_ERRSYNTAX,
573
575
file = LUA_ERRFILE,
574
576
};
@@ -578,7 +580,9 @@ namespace sol {
578
580
yielded = LUA_YIELD,
579
581
runtime = LUA_ERRRUN,
580
582
memory = LUA_ERRMEM,
583
+ #if SOL_LUA_VERSION < 504
581
584
gc = LUA_ERRGCMM,
585
+ #endif
582
586
handler = LUA_ERRERR,
583
587
dead = -1 ,
584
588
};
@@ -587,7 +591,9 @@ namespace sol {
587
591
ok = LUA_OK,
588
592
syntax = LUA_ERRSYNTAX,
589
593
memory = LUA_ERRMEM,
594
+ #if SOL_LUA_VERSION < 504
590
595
gc = LUA_ERRGCMM,
596
+ #endif
591
597
file = LUA_ERRFILE,
592
598
};
593
599
@@ -630,8 +636,10 @@ namespace sol {
630
636
return names[3 ];
631
637
case call_status::handler:
632
638
return names[4 ];
639
+ #if SOL_LUA_VERSION < 504
633
640
case call_status::gc:
634
641
return names[5 ];
642
+ #endif
635
643
case call_status::syntax:
636
644
return names[6 ];
637
645
case call_status::file:
@@ -651,7 +659,9 @@ namespace sol {
651
659
case call_status::runtime:
652
660
case call_status::memory:
653
661
case call_status::handler:
662
+ #if SOL_LUA_VERSION < 504
654
663
case call_status::gc:
664
+ #endif
655
665
case call_status::syntax:
656
666
case call_status::file:
657
667
return false ;
@@ -672,8 +682,10 @@ namespace sol {
672
682
return names[0 ];
673
683
case load_status::memory:
674
684
return names[1 ];
685
+ #if SOL_LUA_VERSION < 504
675
686
case load_status::gc:
676
687
return names[2 ];
688
+ #endif
677
689
case load_status::syntax:
678
690
return names[3 ];
679
691
case load_status::file:
You can’t perform that action at this time.
0 commit comments