Make unsupported run

This commit is contained in:
David Hunt
2015-07-12 11:26:33 -05:00
committed by Hisham Muhammad
parent 5e602f18d5
commit feb7a01fd3
6 changed files with 159 additions and 31 deletions

View File

@ -10,25 +10,21 @@ in the source distribution for its full text.
#include <stdlib.h>
/*{
typedef struct UnsupportedProcess_ {
Process super;
// add platform-specific fields here
} UnsupportedProcess;
#include "Settings.h"
#define Process_delete UnsupportedProcess_delete
}*/
UnsupportedProcess* UnsupportedProcess_new(Settings* settings) {
UnsupportedProcess* this = calloc(sizeof(UnsupportedProcess), 1);
Process* UnsupportedProcess_new(Settings* settings) {
Process* this = calloc(sizeof(Process), 1);
Object_setClass(this, Class(Process));
Process_init(&this->super, settings);
Process_init(this, settings);
return this;
}
void UnsupportedProcess_delete(Object* cast) {
UnsupportedProcess* this = (UnsupportedProcess*) cast;
Process* this = (Process*) cast;
Object_setClass(this, Class(Process));
Process_done((Process*)cast);
// free platform-specific fields here