Reply To: MWEdit

Home Forums Projects MWEdit Reply To: MWEdit

#3755

The end bracket is supposedly inserted by the final function macro.
Here’s the definition in dl_base.h:

#if defined(__MSDOS__)
	#define SYS_MSDOS(Cmd) Cmd
	#define SYS_WIN32(Cmd)
	#define SYS_UNIX(Cmd)
	#define SYS_NONE(Cmd)
#elif defined(_WIN32)
	#define SYS_MSDOS(Cmd)
	#define SYS_WIN32(Cmd) Cmd
	#define SYS_UNIX(Cmd)
	#define SYS_NONE(Cmd)
#else
	#define SYS_MSDOS(Cmd)
	#define SYS_WIN32(Cmd)
	#define SYS_UNIX(Cmd)
	#define SYS_NONE(Cmd) Cmd
#endif

It is only ever used in tasktime and nowhere else. Can’t figure out how it works. In tasktime, it’s only used to pass regular code but never does anything else. Don’t see where it interacts with the system at all :/

Yeah, it’s doing all three of the function definitions. 😛

Thanks! Will plan on purging all instances of DEFINE_FUNCTION. 🙂

A lot of the code was set up using an old, old version of the VS class builder tool. Maybe some of this weirdness can be attributed to that?