Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
551 B

#include "RuntimeErrorStub.h"
#include "../util/RuntimeError.h"
static const char *message = "No Error";
static int parameter = -1;
static const char *file = 0;
static int line = -1;
void RuntimeErrorStub_Reset(void) {
message = "No Error";
parameter = -1;
}
const char *RuntimeErrorStub_GetLastError(void) {
return message;
}
void RuntimeError(const char *m, int p,
const char *f, int l) {
message = m;
parameter = p;
file = f;
line = l;
}
int RuntimeErrorStub_GetLastParameter(void) {
return parameter;
}