[util] Mark PL_CheckType as const

I keep forgetting to do optimized builds :(
This commit is contained in:
Bill Currie 2021-01-07 01:10:25 +09:00
parent 3b06ca01af
commit d4277ef130

View file

@ -310,7 +310,7 @@ plitem_t *PL_NewString (const char *str);
*/
void PL_Free (plitem_t *item);
int PL_CheckType (pltype_t field_type, pltype_t item_type);
int PL_CheckType (pltype_t field_type, pltype_t item_type) __attribute__((const));
void PL_TypeMismatch (plitem_t *messages, const plitem_t *item,
const char *name, pltype_t field_type,
pltype_t item_type);