Gamestudio Links
Zorro Links
Newest Posts
Idx calculated every tick
by Grat. 11/13/19 04:30
using random()
by felixfx. 11/13/19 04:17
Moving Average crossover
by gra9. 11/12/19 17:00
Can't Connect..IG Plugin
by TTT. 11/12/19 14:35
IG Plugin
by TTT. 11/12/19 14:03
Login 0 IG ..
by TTT. 11/12/19 12:59
trade idea - your inputs needed
by Brax. 11/12/19 11:26
IG plugin initial release
by TTT. 11/12/19 10:27
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
5 registered members (Grat, felixfx, RealSerious3D, Dooley, AndrewAMD), 586 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Dev_ill, Ryu, andrews825, KKelk, TTT
18327 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
assert #477358
06/19/19 14:50
06/19/19 14:50
Joined: May 2015
Posts: 164
Czech Republic
Grat Online OP
Member
Grat  Online OP
Member

Joined: May 2015
Posts: 164
Czech Republic
Hi,

how to realize macro assert?

Code
#define ASSERT(expr) if (!(expr)) printf("\nError at line: %d ", __LINE__)


how to get a line in script?

thanks

Last edited by Grat; 06/19/19 14:50.
Re: assert [Re: Grat] #477360
06/19/19 14:59
06/19/19 14:59
Joined: Jul 2000
Posts: 27,051
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,051
Frankfurt
There is no __LINE__ in lite-C, but the rest of the assert macro should work.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1