Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (TipmyPip, clint000, Grant, chsmac85), 6,542 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
struct prototype? #316133
03/21/10 18:24
03/21/10 18:24
Joined: Feb 2004
Posts: 334
metal Offline OP
Senior Member
metal  Offline OP
Senior Member

Joined: Feb 2004
Posts: 334
hi,
i want to have two structs, each with a pointer to the other struct. is this possible with lite-c?
is there something like a struct prototype?

adding "struct Planet;" as in c++ doesn´t work frown
Code:
typedef struct Starsystem{
Planet* planet1;
} Starsystem;


typedef struct Planet{
Starsystem* System;
}Planet



Re: struct prototype? [Re: metal] #316136
03/21/10 18:35
03/21/10 18:35
Joined: Dec 2008
Posts: 271
Saturnus Offline
Member
Saturnus  Offline
Member

Joined: Dec 2008
Posts: 271
No, struct prototypes are not supported by lite-C.

You have to use void pointers here.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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