Skip to content

BasicPawn own's internal #include #125

Description

@dragokas

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions