Jump to content

Recommended Posts

Yoo :)

 

while porting some stuff, i've been facing some global defs collisions while linking.

It seems that internally JagStudio is using globals like : _joy and _keyb

 

As i'm also pretty lazy on good coding practices... Ofc both definitions are colliding with my own  ^^

 

In any case, you should also add a prefix to these definitions on the jagStudio side to avoid these situations, such as (_jagstd) resulting in _jagstdJoy and _jagstdKeyb which would be less prone to collisions.

 

 

 

 

 

Link to comment
https://forums.atariage.com/topic/375373-global-definitions-collisions/
Share on other sites

On 11/14/2024 at 7:52 AM, OzzyOuzo said:

Yoo :)

 

while porting some stuff, i've been facing some global defs collisions while linking.

It seems that internally JagStudio is using globals like : _joy and _keyb

 

As i'm also pretty lazy on good coding practices... Ofc both definitions are colliding with my own  ^^

 

In any case, you should also add a prefix to these definitions on the jagStudio side to avoid these situations, such as (_jagstd) resulting in _jagstdJoy and _jagstdKeyb which would be less prone to collisions.

 

 

 

 

 

Ok, you want a widely used library to be changed just because you cannot change your variable to :my_joy and my_keyb?
Doesn't it sound strange to you?

Edited by 42bs
On 11/14/2024 at 10:03 AM, OzzyOuzo said:

sorry to be a noob but which Manual are you refering to ? :)

something different from this ?

https://reboot-games.com/jagstudio/ReferenceManual.html

I guess he means: "Your problem gets fixed by _adding_ a chapter to the manual about reserved names."
Not that it now contains such. ;-)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...