Hi, is there any possibility to make struct including one or more events which can be used later by other functions? I tried with the following code and some similar code but this all didn't work.

Code:
void evt () {
	storage = 1;
}

typedef struct {
	var storage;
	EVENT evt;
	
} test_struct;


function main() {
	test_struct bla;
	bla.evt;
	printf("%f", bla.storage);
}



Last edited by Toryno; 01/21/11 04:44.

Thanks for reading, thinking, answering wink