I want to instrument some code that gets executed before any other code in my module.
I thought about calling the code in the start of the main function. But there is not always a main function or it is not always named "main". Or it is a library and it doesn't even have a main function.
Are there some other, smarter ways?