Jump to content
maths bengtsson

Single declaration of dbugintf .pas in each unit uses?

Recommended Posts

3 hours ago, maths bengtsson said:

Is there a way to declare dbugintf .pas'  in just one place  instead in  every units  I want to use senddebug for instance

If by "declare" you mean "add to the uses list": No that I am aware of.


In theory you could add the code into an existing unit that's already in the uses clause everywhere. You could create lightweight wrapper functions that get exported from that unit and simply call the original functions in dbugintf, thus basically redirecting the calls.

Depending on what you want to do that might work for you.

Edited by dummzeuch
  • Like 1

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now