quakeforge/ruamoko/scheme/BaseContinuation.r
Bill Currie 6d494bfcdf Fix a slew of warnings found by -Wall.
-Wall still isn't used yet due to a missing method in Array, and
overzealous warnings in qfcc, but this covers the necessary fixes.
2010-12-16 20:01:49 +09:00

29 lines
474 B
R

#include "BaseContinuation.h"
#include "Cons.h"
instruction_t returninst;
BaseContinuation base;
@implementation BaseContinuation
+ (void) initialize
{
returninst.opcode = RETURN;
base = [BaseContinuation new];
}
+ (id) baseContinuation
{
return base;
}
- (void) restoreOnMachine: (Machine) m
{
[m state].program = &returninst;
}
- (void) invokeOnMachine: (Machine) m
{
[m value: [(Cons) [m stack] car]];
[m state].program = &returninst;
}
@end