Skip to content

Commit

Permalink
More idiomatic (and complete) include guards.
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Less committed Jul 22, 2019
1 parent 06f9474 commit 7aab7be
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 7 deletions.
3 changes: 2 additions & 1 deletion a_actor.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*
*/

#if defined _actor_included
#if defined _INC_a_actor
#endinput
#endif
#define _INC_a_actor
#define _actor_included

/// <summary>Create a static 'actor' in the world. These 'actors' are like NPCs, however they have limited functionality. They do not take up server player slots.</summary>
Expand Down
5 changes: 5 additions & 0 deletions a_http.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
*/

#if defined _INC_a_http
#endinput
#endif
#define _INC_a_http

// HTTP requests
#define HTTP_GET 1
#define HTTP_POST 2
Expand Down
3 changes: 2 additions & 1 deletion a_npc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*
*/

#if defined _samp_included
#if defined _INC_a_npc
#endinput
#endif
#define _INC_a_npc
#define _samp_included

#pragma tabsize 4
Expand Down
3 changes: 2 additions & 1 deletion a_objects.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*
*/

#if defined _objects_included
#if defined _INC_a_objects
#endinput
#endif
#define _INC_a_objects
#define _objects_included

// Objects
Expand Down
3 changes: 2 additions & 1 deletion a_players.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*
*/

#if defined _players_included
#if defined _INC_a_players
#endinput
#endif
#define _INC_a_players
#define _players_included

#define SPECIAL_ACTION_NONE 0
Expand Down
3 changes: 2 additions & 1 deletion a_samp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*
*/

#if defined _samp_included
#if defined _INC_a_samp
#endinput
#endif
#define _INC_a_samp
#define _samp_included

#pragma tabsize 4
Expand Down
3 changes: 2 additions & 1 deletion a_sampdb.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
// (c) Copyright 2015, SA-MP Team
//

#if defined _sampdb_included
#if defined _INC_a_sampdb
#endinput
#endif
#define _INC_a_sampdb
#define _sampdb_included

/// <summary>This function is used to open a connection to a SQLite database, which is inside the <b><c>/scriptfiles</c></b> folder.</summary>
Expand Down
3 changes: 2 additions & 1 deletion a_vehicles.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*
*/

#if defined _vehicles_included
#if defined _INC_a_vehicles
#endinput
#endif
#define _INC_a_vehicles
#define _vehicles_included

#define CARMODTYPE_SPOILER 0
Expand Down

0 comments on commit 7aab7be

Please sign in to comment.