Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicPawn own's internal #include #125

Open
dragokas opened this issue Aug 5, 2023 · 2 comments
Open

BasicPawn own's internal #include #125

dragokas opened this issue Aug 5, 2023 · 2 comments
Labels

Comments

@dragokas
Copy link
Contributor

dragokas commented Aug 5, 2023

Does BasicPawn has own service #include to know that the code is being compiled by this specific compiler?

Well, you may I ask why... I'd like to make some code (like Left 4 DHooks Direct) be compatible with BasicPawn (in sense of the latest SM version supported by BP) without breaking original code style.

E.g.:

enum L4D2WeaponId
{
	...
	#if defined BasicPawn
		L4D2WeaponId_Max
	#endif
}

#if defined BasicPawn
static const char L4D2WeaponWorldModel[L4D2WeaponId][] =
#else
static const char L4D2WeaponWorldModel[L4D2WeaponId_Max][] =
#endif
{
	...
}

Some language features used above are only supported by the newest SM.

@Timocop
Copy link
Owner

Timocop commented Aug 5, 2023

No there is no BasicPawn include nor define.
The syntax doesnt seem to have changed since i last time used it?
So BasicPawn should still work with new compilers, you just cant compile them sadly.

I will get back to BasicPawn and fix this issue eventually. Currently i have been working on another big project and havent touched BasicPawn in a while. That doesnt mean its dead tho.

You can use DosMike's fork that made a workaround for this issue. https://github.com/DosMike/BasicPawn

@MAGNAT2645
Copy link

Did you try to define BasicPawn=1 in this line? Works for me.
изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants