Last one was fun, lets see how long it lasts :D
Lets say I create a non static function that only exists in a source file, how can I extern it in another source file?
Yes yes, I can just tell the user not to touch it and put in a header file, but this one would be very bad to use and VERY hard to debug once gone wrong.
All the OpenGl stuff that require binding is currently being handled by local atomic flags at my APIs that interface with the specific areas, for instance, the ID of the last bound Texture is always known and if the user tries to do it repeatedly, the API just ignores it.
If the user, for some exceptional genius idea, get hold of a Texture ID and call glBindTexture(), every call to my Texture API would behave in a undefined way.
Therefore, I would like very much to keep the getTextureID() function hidden, only being useful for my other APIs that may require it.
Before you ask, yes, this is a problem with my google-fu again. Any search I make with the word "extern" only leads to AI slop with beginners topics on how header files work.
No, I don't use Google. DuckDuckGo served me well for years and has only recently completely turned to the dark side of AI. I see myself more and more depending on Reddit for lots of very normal searches.
Which makes me think, Forums may well make a come back, since this is the only proper solution to the sea of slop. Reddit basically works as one, just for everything all at once.
Do you guys know of Hubzilla? I was very interested on it for a wile, was never able to make a fully working server though and every "public" ones turned private because of bots and span.