Skip to content

Commit 10439e7

Browse files
committed
Refactor comments
1 parent dd66af1 commit 10439e7

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

cgsc.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ extern "C"
4141
#define CPP_EXTERN
4242
#endif
4343

44-
/// @brief Adds the definition for cod4x server and plugin export.
4544
#define EXPORT(type, definition) \
4645
type definition; \
4746
type Plugin_##definition
@@ -74,7 +73,7 @@ extern "C"
7473
#define IsObject(var) ((var->w.type & VAR_MASK) >= VAR_THREAD)
7574
#define IsObjectVal(var) ((var->type & VAR_MASK) >= VAR_THREAD)
7675

77-
// clang-format off
76+
// clang-format off
7877
enum GSCTypeFlag
7978
{
8079
FLAG_UNDEFINED = 1,
@@ -124,7 +123,7 @@ typedef struct
124123
uint32_t length;
125124
VariableValue* items;
126125
} VariableValueArray;
127-
// clang-format on
126+
// clang-format on
128127

129128
#include "extensions/functions.h"
130129
#include "extensions/variables.h"

versions/cgsc3.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,12 @@ __attribute__((unused)) scrVmPub_t gScrVmPub = { 0 };
3030
__attribute__((unused)) struct scrVmGlob_t gScrVmGlob = { 0 };
3131
__attribute__((unused)) scrVarPub_t gScrVarPub;
3232

33-
/// @brief Get the object type.
34-
/// @param id - The object id.
35-
/// @return
3633
unsigned int Scr_GetObjectType(unsigned int id)
3734
{
3835
assert((IGScrVarGlob[VARIABLELIST_PARENT_BEGIN + id].w.status & VAR_STAT_MASK) != VAR_STAT_FREE);
3936
return VAR_TYPE((&IGScrVarGlob[id + VARIABLELIST_PARENT_BEGIN]));
4037
}
4138

42-
/// @brief Get the array size.
43-
/// @param id - The array id.
44-
/// @return
4539
int GetArraySize(int id)
4640
{
4741
VariableValueInternal *entryValue;

versions/cgsc4.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#if CGSC_EQ(4)
44

5-
/// @brief Add a function pointer to the GSC stack.
6-
/// @param codePosValue - The code pos value.
75
void Scr_AddFunc(const char *codePosValue)
86
{
97
IncInParam();

0 commit comments

Comments
 (0)