Skip to content

BasicPawn own's internal #include #125

@dragokas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions