Make globals available accross DLL boundaries #5
	
		Labels
		
	
	
	
	
		No Label
		
			
	
	
	invalid
		
			kind
bug
		
			kind
feature
		
			kind
meta
		
			kind
refactoring
		
			priority
blocker
		
			priority
high
		
			priority
low
		
			priority
medium
		
		
	
		No Milestone
		
	
	
		
		
		
			No project
			
				
			
		
	
	
	
	
	
		No Assignees
		
			
		
	
	
	
		1 Participants
		
	
	
		
		
			Notifications
			
				
			
		
	
	
		
		
	
	
	Due Date
	No due date set.
			
				Dependencies
				
				
		
	
	
	No dependencies set.
			Reference: kevin/rtengine#5
			
		
	
		Loading…
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current pattern does not work across dll boundaries, but simply doing a
extern DL_IMPORT foo g_foo;in the header results in a warning:One idea is to instead offer functions for this:
Pro: Should obviously work
Con: "Unnecessary" function calls.
This problem could be mitigated if the "client" DLL simply caches the result in a global variable. If, for example, the game uses the main loop constantly, it could do:
and all code after that just uses the g_main_loop variable.
Question: Would this work with linux builds, where we don't need DLLEXPORT/IMPORT to access other codes variables?