I tracked down the problem. Just add some lines of code before the first CONDITION().
Example:
PHP Code:
// ============================================================================
//
// This file contains the actions, conditions and expressions your object uses
//
// ============================================================================
#include "common.h"
int foobar() { //
return 100; // This part will cause the exception
} //
// ============================================================================
//
// CONDITIONS
//
// ============================================================================
CONDITION(
/* ID */ 0,
/* Name */ "%o: %0 == %1",
/* Flags */ EVFLAGS_ALWAYS|EVFLAGS_NOTABLE,
/* Params */ (2,PARAM_NUMBER,"First number",PARAM_NUMBER,"Second number")
) {
int p1=Param(TYPE_INT);
int p2=Param(TYPE_INT);
return p1==p2;
}