Gamestudio Links
Zorro Links
Newest Posts
script() function that sets Script
by AndrewAMD. 07/20/19 14:18
Beginners Workshop
by danatrader. 07/20/19 07:54
ANet and GSTsqlite files
by TheDynamit. 07/20/19 06:38
What are you working on?
by rayp. 07/19/19 20:34
missing trade variables
by sarmasboy. 07/19/19 15:54
histdata to t1
by sarmasboy. 07/19/19 14:26
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
6 registered members (danatrader, Dalla, AndrewAMD, TheDynamit, Zheka, Seymour), 641 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ChrPr, fclaros, maxwellreturn, chtostoic, Charttrader
18259 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: 146
Czech Republic
Grat Offline OP
Member
Grat  Offline OP
Member

Joined: May 2015
Posts: 146
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: 26,947
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 26,947
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