Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
41 user(s) are online (31 user(s) are browsing Forums)

Members: 0
Guests: 41

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: library auto init code (solved)

Subject: Re: library auto init code (solved)
by Hans on 2019/4/13 1:12:35

@salass00

Quote:
Did you define NDEBUG when compiling the autoinit code? If so assert() would be defined as a no-op.

No. It's very strange that it did nothing for me, but it works for xenic.

I personally think that assert() shouldn't be used for autoinit code even if it works, because an error message saying "Couldn't open sample.library" is much clearer than an assertion failure message.

Ideally it would open an error requester, but even IDOS->PutErrorStr() makes it clear why it's failing.

Hans

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project