is, set, reset, toggle macros error on flags in structs

Posted By: MrGuest

is, set, reset, toggle macros error on flags in structs - 12/23/10 13:37

This code now errors in the new update yet worked perfectly fine in 8.03.

Error:
flags : is not a member of "
< set(options, 1); >
Code:
#include <acknex.h>
#include <default.c>

typedef struct OPTIONS {
	var flags;
} OPTIONS;
OPTIONS options;

void main(){
	
	set(options, 1);
}


Posted By: jcl

Re: is, set, reset, toggle macros error on flags in structs - 12/23/10 14:20

That's right. The set macro is not for structs, only for struct pointers, such as engine objects. There is a reason why you didn't get an error message in 8.03, but this would be complicated to explain.
© 2024 lite-C Forums