Add 'continue' command for loops. Also enhance for() unit tests which are now breaking and need to be fixed

This commit is contained in:
Jason Turner
2013-02-23 14:49:20 -07:00
parent e298333ac6
commit c9995480e6
7 changed files with 160 additions and 4 deletions

View File

@@ -494,6 +494,14 @@ namespace chaiscript
Break_Loop() { }
};
/**
* Special type indicating a call to 'continue'
*/
struct Continue_Loop {
Continue_Loop() { }
};
/// Creates a new scope then pops it on destruction
struct Scope_Push_Pop
{