mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
[ruamoko] Pass some more purity tests
Separate because I want to cherry-pick the other commit.
This commit is contained in:
parent
e58d53d4b6
commit
f0c35e541a
1 changed files with 3 additions and 3 deletions
|
@ -75,7 +75,7 @@ rua_scene_free (scene_resources_t *res, rua_scene_t *scene)
|
||||||
PR_RESFREE (res->scene_map, scene);
|
PR_RESFREE (res->scene_map, scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
static rua_scene_t *
|
static rua_scene_t * __attribute__((pure))
|
||||||
rua__scene_get (scene_resources_t *res, int id, const char *name)
|
rua__scene_get (scene_resources_t *res, int id, const char *name)
|
||||||
{
|
{
|
||||||
rua_scene_t *scene = PR_RESGET (res->scene_map, id);
|
rua_scene_t *scene = PR_RESGET (res->scene_map, id);
|
||||||
|
@ -88,7 +88,7 @@ rua__scene_get (scene_resources_t *res, int id, const char *name)
|
||||||
}
|
}
|
||||||
#define rua_scene_get(res, id) rua__scene_get(res, id, __FUNCTION__)
|
#define rua_scene_get(res, id) rua__scene_get(res, id, __FUNCTION__)
|
||||||
|
|
||||||
static entity_t *
|
static entity_t * __attribute__((pure))
|
||||||
rua__entity_get (progs_t *pr, rua_scene_t *scene, int id, const char *name)
|
rua__entity_get (progs_t *pr, rua_scene_t *scene, int id, const char *name)
|
||||||
{
|
{
|
||||||
entity_t *ent = Scene_GetEntity (scene->scene, id);
|
entity_t *ent = Scene_GetEntity (scene->scene, id);
|
||||||
|
@ -100,7 +100,7 @@ rua__entity_get (progs_t *pr, rua_scene_t *scene, int id, const char *name)
|
||||||
}
|
}
|
||||||
#define rua_entity_get(pr, scene, id) rua__entity_get(pr, scene, id, __FUNCTION__)
|
#define rua_entity_get(pr, scene, id) rua__entity_get(pr, scene, id, __FUNCTION__)
|
||||||
|
|
||||||
static int
|
static int __attribute__((pure))
|
||||||
rua_scene_index (scene_resources_t *res, rua_scene_t *scene)
|
rua_scene_index (scene_resources_t *res, rua_scene_t *scene)
|
||||||
{
|
{
|
||||||
return PR_RESINDEX (res->scene_map, scene);
|
return PR_RESINDEX (res->scene_map, scene);
|
||||||
|
|
Loading…
Reference in a new issue