replace include guards with #pragma once

This commit is contained in:
Andrei Alexeyev 2021-08-13 00:09:01 +03:00
parent c49357ffef
commit 8d2ee76710
No known key found for this signature in database
GPG key ID: 72D26128040B9690
269 changed files with 284 additions and 1348 deletions

View file

@ -31,6 +31,8 @@ copyright_comment_default_copyrights = r"""
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
"""
use_pragma_once = True
guard_prefix = 'IGUARD_'
guard_chars = 'A-Za-z0-9_'
@ -76,13 +78,20 @@ class Janitor:
return f'{guard_prefix}{badchar_regex.sub("_", str(relpath))}'
def get_guard_template(self, guard):
return (
r'\n\n'
rf'#ifndef {guard}\n'
rf'#define {guard}\n\n'
r'\1\n\n'
rf'#endif // {guard}\n'
)
if use_pragma_once:
return (
r'\n\n'
rf'#pragma once\n'
r'\1\n'
)
else:
return (
r'\n\n'
rf'#ifndef {guard}\n'
rf'#define {guard}\n\n'
r'\1\n\n'
rf'#endif // {guard}\n'
)
def transform_include_guards(self, text, path):
guard = self.get_guard_name(path)

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_aniplayer_h
#define IGUARD_aniplayer_h
#pragma once
#include "taisei.h"
// In principle, playing an animation does not require any state, just a call to
@ -107,5 +105,3 @@ AniQueueEntry *aniplayer_queue_frames(AniPlayer *plr, const char *seqname, int m
// the rest of the game which just uses global.frames as a counter). So you
// need to call this function once per frame to make an animation move.
void aniplayer_update(AniPlayer *plr) attr_nonnull(1);
#endif // IGUARD_aniplayer_h

View file

@ -5,9 +5,7 @@
* Copyright (c) 2019, p-sam <p-sam@d3vs.net>.
*/
#ifndef IGUARD_arch_switch_h
#define IGUARD_arch_switch_h
#pragma once
#include "taisei.h"
typedef void (*nxAtExitFn)(void);
@ -18,5 +16,3 @@ int nxAtExit(nxAtExitFn fn);
void noreturn nxExit(int rc);
void noreturn nxAbort(void);
const char* nxGetProgramDir(void);
#endif // IGUARD_arch_switch_h

View file

@ -6,12 +6,8 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_assert_h
#define IGUARD_assert_h
#pragma once
#include "taisei.h"
// WARNING: This file intentionally shadows the standard header!
#include "util/assert.h"
#endif // IGUARD_assert_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_audio_audio_h
#define IGUARD_audio_audio_h
#pragma once
#include "taisei.h"
#include "resource/sfx.h"
@ -88,5 +86,3 @@ INLINE SFXPlayID play_sound_ex(const char *name, int cooldown, bool replace) {
}
double audioutil_loopaware_position(double rt_pos, double duration, double loop_start);
#endif // IGUARD_audio_audio_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_audio_backend_h
#define IGUARD_audio_backend_h
#pragma once
#include "taisei.h"
#include "audio.h"
@ -76,5 +74,3 @@ typedef struct AudioBackend {
extern AudioBackend _a_backend;
bool audio_backend_init(void);
#endif // IGUARD_audio_backend_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_audio_stream_player_h
#define IGUARD_audio_stream_player_h
#pragma once
#include "taisei.h"
#include "stream.h"
@ -60,5 +58,3 @@ int splayer_pick_channel(StreamPlayer *plr) attr_nonnull_all;
#include "audio/audio.h"
BGMStatus splayer_util_bgmstatus(StreamPlayer *plr, int chan) attr_nonnull_all;
#endif // IGUARD_audio_stream_player_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_audio_stream_stream_h
#define IGUARD_audio_stream_stream_h
#pragma once
#include "taisei.h"
#include <SDL_audio.h>
@ -70,5 +68,3 @@ AudioStreamSpec astream_spec(SDL_AudioFormat sample_format, uint channels, uint
bool astream_spec_equals(const AudioStreamSpec *s1, const AudioStreamSpec *s2);
ssize_t astream_util_resampled_buffer_size(const AudioStream *src, const AudioStreamSpec *spec);
#endif // IGUARD_audio_stream_stream_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_audio_stream_stream_opus_h
#define IGUARD_audio_stream_stream_opus_h
#pragma once
#include "taisei.h"
#include "stream.h"
bool astream_opus_open(AudioStream *stream, SDL_RWops *rw);
#endif // IGUARD_audio_stream_stream_opus_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_audio_stream_stream_pcm_h
#define IGUARD_audio_stream_stream_pcm_h
#pragma once
#include "taisei.h"
#include "stream.h"
@ -32,5 +30,3 @@ bool astream_pcm_reopen(AudioStream *stream, const AudioStreamSpec *spec, size_t
void astream_pcm_static_init(StaticPCMAudioStream *stream)
attr_nonnull_all;
#endif // IGUARD_audio_stream_stream_pcm_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_boss_h
#define IGUARD_boss_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -244,5 +242,3 @@ void _begin_boss_attack_task(const BossAttackTaskArgs *args)
int attacktype_start_delay(AttackType t) attr_const;
int attacktype_end_delay(AttackType t) attr_const;
#endif // IGUARD_boss_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_camcontrol_h
#define IGUARD_camcontrol_h
#pragma once
#include "taisei.h"
#include "stageutils.h"
@ -27,5 +25,3 @@
*/
void camcontrol_init(Camera3D *cam);
#endif // IGUARD_camcontrol_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_cli_h
#define IGUARD_cli_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
@ -40,5 +38,3 @@ struct CLIAction {
int cli_args(int argc, char **argv, CLIAction *a);
void free_cli_action(CLIAction *a);
#endif // IGUARD_cli_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_color_h
#define IGUARD_color_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -95,5 +93,3 @@ bool color_equals(const Color *clr, const Color *clr2)
char* color_str(const Color *clr)
attr_nonnull(1) attr_returns_allocated;
#endif // IGUARD_color_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_common_tasks_h
#define IGUARD_common_tasks_h
#pragma once
#include "taisei.h"
#include "coroutine.h"
@ -125,5 +123,3 @@ DECLARE_EXTERN_TASK(
glm_ease_t ease;
}
);
#endif // IGUARD_common_tasks_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_config_h
#define IGUARD_config_h
#pragma once
#include "taisei.h"
#include <SDL_keycode.h>
@ -236,5 +234,3 @@ void config_save(void);
int config_set_int(ConfigIndex idx, int val);
double config_set_float(ConfigIndex idx, double val);
char* config_set_str(ConfigIndex idx, const char *val) attr_nonnull(2) attr_returns_nonnull;
#endif // IGUARD_config_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_coroutine_h
#define IGUARD_coroutine_h
#pragma once
#include "taisei.h"
#include "entity.h"
@ -519,5 +517,3 @@ INLINE EntityInterface *_cotask_bind_to_entity_Entity(EntityInterface *ent, CoTa
ENT_UNBOXED_DISPATCH_FUNCTION(_cotask_bind_to_entity_, ent, task)
#define TASK_BIND(ent_or_box) cotask_bind_to_entity(cotask_active(), ENT_UNBOX_OR_PASSTHROUGH(ent_or_box))
#endif // IGUARD_coroutine_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_credits_h
#define IGUARD_credits_h
#pragma once
#include "taisei.h"
#include "eventloop/eventloop.h"
void credits_enter(CallChain next);
void credits_preload(void);
#endif // IGUARD_credits_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_cutscenes_cutscene_h
#define IGUARD_cutscenes_cutscene_h
#pragma once
#include "taisei.h"
#include "eventloop/eventloop.h"
@ -34,5 +32,3 @@ typedef enum CutsceneID {
void cutscene_enter(CallChain next, CutsceneID id);
const char *cutscene_get_name(CutsceneID id);
#endif // IGUARD_cutscenes_cutscene_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_cutscenes_scene_impl_h
#define IGUARD_cutscenes_scene_impl_h
#pragma once
#include "taisei.h"
#include "color.h"
@ -73,5 +71,3 @@ typedef struct Cutscene {
#define T_REMILIA(text) T_SPEECH("Remilia", text, { 0.900, 0.100, 0.100, 1 })
#define T_FLANDRE(text) T_SPEECH("Flandre", text, { 1.000, 0.600, 0.600, 1 })
#define T_PATCHOULI(text) T_SPEECH("Patchouli", text, { 0.700, 0.600, 1.000, 1 })
#endif // IGUARD_cutscenes_scene_impl_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_cutscenes_scenes_h
#define IGUARD_cutscenes_scenes_h
#pragma once
#include "taisei.h"
#include "cutscene.h"
#include "scene_impl.h"
extern const Cutscene g_cutscenes[NUM_CUTSCENE_IDS];
#endif // IGUARD_cutscenes_scenes_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_dialog_h
#define IGUARD_dialog_h
#pragma once
#include "taisei.h"
#include "color.h"
@ -135,5 +133,3 @@ bool dialog_is_active(Dialog *d);
void dialog_preload(void);
#include "dialog/dialog_interface.h"
#endif // IGUARD_dialog_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_dialog_dialog_interface_h
#define IGUARD_dialog_dialog_interface_h
#pragma once
#include "taisei.h"
#include "dialog.h"
@ -72,5 +70,3 @@ typedef struct PlayerDialogTasks {
}; \
_dialog_ref._cotask_##_dialog_name##Dialog##_thunk(&_dialog_args); \
} while(0)
#endif // IGUARD_dialog_dialog_interface_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_dialog_dialog_macros_h
#define IGUARD_dialog_dialog_macros_h
#pragma once
#include "taisei.h"
#include "dialog.h"
@ -67,5 +65,3 @@
#define PRELOAD_FACE(face) \
portrait_preload_face_sprite(_charname, #face, ARGS.preload_rflags)
#endif // IGUARD_dialog_dialog_macros_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_dialog_marisa_h
#define IGUARD_dialog_marisa_h
#pragma once
#include "taisei.h"
#include "dialog.h"
extern PlayerDialogTasks dialog_tasks_marisa;
#endif // IGUARD_dialog_marisa_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_dialog_reimu_h
#define IGUARD_dialog_reimu_h
#pragma once
#include "taisei.h"
#include "dialog.h"
extern PlayerDialogTasks dialog_tasks_reimu;
#endif // IGUARD_dialog_reimu_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_dialog_youmu_h
#define IGUARD_dialog_youmu_h
#pragma once
#include "taisei.h"
#include "dialog.h"
extern PlayerDialogTasks dialog_tasks_youmu;
#endif // IGUARD_dialog_youmu_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_difficulty_h
#define IGUARD_difficulty_h
#pragma once
#include "taisei.h"
#include "color.h"
@ -37,5 +35,3 @@ void difficulty_preload(void);
double difficulty_value(double easy, double normal, double hard, double lunatic)
attr_pure;
#endif // IGUARD_difficulty_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_dynarray_h
#define IGUARD_dynarray_h
#pragma once
#include "taisei.h"
#include "util/macrohax.h"
@ -168,5 +166,3 @@ void _dynarray_filter(
attr_unused void *_dynarray_foreach_ignored, \
__VA_ARGS__ \
)
#endif // IGUARD_dynarray_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_enemy_h
#define IGUARD_enemy_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -157,5 +155,3 @@ void BigFairy(Enemy*, int t, bool render) attr_deprecated("Use the espawn_ API f
int enemy_flare(Projectile *p, int t) attr_deprecated("Use tasks");
void enemies_preload(void);
#endif // IGUARD_enemy_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_enemy_classes_h
#define IGUARD_enemy_classes_h
#pragma once
#include "taisei.h"
#include "enemy.h"
@ -41,5 +39,3 @@ Enemy *espawn_super_fairy(cmplx pos, const ItemCounts *item_drops);
#define espawn_big_fairy_box(...) ENT_BOX(espawn_big_fairy(__VA_ARGS__))
#define espawn_huge_fairy_box(...) ENT_BOX(espawn_huge_fairy(__VA_ARGS__))
#define espawn_super_fairy_box(...) ENT_BOX(espawn_super_fairy(__VA_ARGS__))
#endif // IGUARD_enemy_classes_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_entity_h
#define IGUARD_entity_h
#pragma once
#include "taisei.h"
#include "objectpool.h"
@ -309,5 +307,3 @@ INLINE void _ent_array_add_Entity(struct EntityInterface *ent, BoxedEntityArray
} while(0)
#define ENT_ARRAY_CLEAR(_array) ((_array)->size = 0)
#endif // IGUARD_entity_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_eventloop_eventloop_h
#define IGUARD_eventloop_eventloop_h
#pragma once
#include "taisei.h"
#include "hirestime.h"
@ -98,5 +96,3 @@ INLINE attr_nonnull(1) void run_call_chain(CallChain *cc, void *result) {
}
}
#endif
#endif // IGUARD_eventloop_eventloop_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_eventloop_eventloop_private_h
#define IGUARD_eventloop_eventloop_private_h
#pragma once
#include "taisei.h"
#include "eventloop.h"
@ -38,5 +36,3 @@ void eventloop_leave(void);
LogicFrameAction run_logic_frame(LoopFrame *frame);
LogicFrameAction handle_logic(LoopFrame **pframe, const FrameTimes *ftimes);
RenderFrameAction run_render_frame(LoopFrame *frame);
#endif // IGUARD_eventloop_eventloop_private_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_events_h
#define IGUARD_events_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -116,5 +114,3 @@ void events_unregister_handler(EventHandlerProc proc);
void events_poll(EventHandler *handlers, EventFlags flags);
void events_emit(TaiseiEvent type, int32_t code, void *data1, void *data2);
void events_defer(SDL_Event *evt);
#endif // IGUARD_events_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_framerate_h
#define IGUARD_framerate_h
#pragma once
#include "taisei.h"
#include "hirestime.h"
@ -23,5 +21,3 @@ typedef struct {
uint32_t get_effective_frameskip(void);
void fpscounter_reset(FPSCounter *fps);
void fpscounter_update(FPSCounter *fps);
#endif // IGUARD_framerate_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_gamepad_h
#define IGUARD_gamepad_h
#pragma once
#include "taisei.h"
#include <SDL.h>
@ -133,5 +131,3 @@ int gamepad_denormalize_axis_value(double val);
#define GAMEPAD_AXIS_MAX_VALUE 32767
#define GAMEPAD_AXIS_MIN_VALUE -32768
#define AXISVAL sign
#endif // IGUARD_gamepad_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_global_h
#define IGUARD_global_h
#pragma once
#include "taisei.h"
#include <SDL.h>
@ -148,5 +146,3 @@ void taisei_commit_persistent_data(void);
// XXX: Move this somewhere?
bool gamekeypressed(KeyIndex key);
#endif // IGUARD_global_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_hashtable_h
#define IGUARD_hashtable_h
#pragma once
#include "taisei.h"
/*
@ -78,5 +76,3 @@ INLINE uint32_t htutil_hashfunc_string(const char *str) {
// NOTE: For the hashtable API, see hashtable.inc.h
// NOTE: For type-generic wrappers around the API, see hashtable_predefs.inc.h
#endif // IGUARD_hashtable_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_hirestime_h
#define IGUARD_hirestime_h
#pragma once
#include "taisei.h"
typedef uint64_t hrtime_t;
@ -23,5 +21,3 @@ typedef int64_t shrtime_t;
void time_init(void);
void time_shutdown(void);
hrtime_t time_get(void);
#endif // IGUARD_hirestime_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_item_h
#define IGUARD_item_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -104,5 +102,3 @@ void items_preload(void);
#define ITEM_MAX_VALUE 1.0
#define ITEM_MIN_VALUE 0.1
#endif // IGUARD_item_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_known_entities_h
#define IGUARD_known_entities_h
#pragma once
#include "taisei.h"
#define ENTITIES_CORE(X, ...) \
@ -27,5 +25,3 @@
ENTITIES_CORE(X, __VA_ARGS__) \
ENTITIES_PLAYERMODES(X, __VA_ARGS__) \
ENTITIES_STAGES(X, __VA_ARGS__) \
#endif // IGUARD_known_entities_h

View file

@ -6,12 +6,8 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_laser_h
#define IGUARD_laser_h
#pragma once
#include "taisei.h"
// TODO remove this stub header
#include "lasers/laser.h"
#endif // IGUARD_laser_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_lasers_draw_h
#define IGUARD_lasers_draw_h
#pragma once
#include "taisei.h"
#include "entity.h"
@ -24,5 +22,3 @@ struct LaserRenderData {
LIST_INTERFACE(LaserRenderData);
int tile;
};
#endif // IGUARD_lasers_draw_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_lasers_internal_h
#define IGUARD_lasers_internal_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -41,5 +39,3 @@ extern LaserInternalData lintern;
void laserintern_init(void);
void laserintern_shutdown(void);
#endif // IGUARD_lasers_internal_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_lasers_laser_h
#define IGUARD_lasers_laser_h
#pragma once
#include "taisei.h"
#include "draw.h"
@ -98,5 +96,3 @@ DECLARE_EXTERN_TASK(laser_charge, {
float charge_delay;
float target_width;
});
#endif // IGUARD_lasers_laser_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_list_h
#define IGUARD_list_h
#pragma once
#include "taisei.h"
#if TAISEI_BUILDCONF_MALLOC_ALIGNMENT < 16
@ -188,5 +186,3 @@ ListContainer* list_wrap_container(void *data) attr_returns_allocated;
#define alist_free_all(dest) \
alist_free_all(LIST_ANCHOR_CAST(dest))
#endif // IGUARD_list_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_log_h
#define IGUARD_log_h
#pragma once
#include "taisei.h"
#include <SDL.h>
@ -152,5 +150,3 @@ void _taisei_log(LogLevel lvl, const char *funcname, const char *filename, uint
noreturn void _taisei_log_fatal(LogLevel lvl, const char *funcname, const char *filename, uint line, const char *fmt, ...)
attr_printf(5, 6);
#endif // IGUARD_log_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_charselect_h
#define IGUARD_menu_charselect_h
#pragma once
#include "taisei.h"
#include "menu.h"
@ -16,5 +14,3 @@
MenuData* create_char_menu(void);
void draw_char_menu(MenuData *menu);
void preload_char_menu(void);
#endif // IGUARD_menu_charselect_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_common_h
#define IGUARD_menu_common_h
#pragma once
#include "taisei.h"
#include "menu.h"
@ -22,5 +20,3 @@ void animate_menu_list(MenuData *m);
void animate_menu_list_entries(MenuData *m);
void animate_menu_list_entry(MenuData *m, int i);
void menu_action_close(MenuData *menu, void *arg);
#endif // IGUARD_menu_common_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_cutsceneview_h
#define IGUARD_menu_cutsceneview_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData *create_cutsceneview_menu(void);
#endif // IGUARD_menu_cutsceneview_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_difficultyselect_h
#define IGUARD_menu_difficultyselect_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData* create_difficulty_menu(void);
void draw_difficulty_menu(MenuData *m);
#endif // IGUARD_menu_difficultyselect_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_gameovermenu_h
#define IGUARD_menu_gameovermenu_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData* create_gameover_menu(void);
#endif // IGUARD_menu_gameovermenu_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_ingamemenu_h
#define IGUARD_menu_ingamemenu_h
#pragma once
#include "taisei.h"
#include "menu.h"
@ -22,5 +20,3 @@ MenuData* create_ingame_menu_replay(void);
void update_ingame_menu(MenuData *menu);
void restart_game(MenuData *m, void *arg);
#endif // IGUARD_menu_ingamemenu_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_mainmenu_h
#define IGUARD_menu_mainmenu_h
#pragma once
#include "taisei.h"
#include "menu.h"
@ -19,5 +17,3 @@ void draw_main_menu(MenuData *m);
void main_menu_update_practice_menus(void);
void draw_loading_screen(void);
void menu_preload(void);
#endif // IGUARD_menu_mainmenu_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_media_h
#define IGUARD_menu_media_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData *create_media_menu(void);
#endif // IGUARD_menu_media_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_menu_h
#define IGUARD_menu_menu_h
#pragma once
#include "taisei.h"
#include "transition.h"
@ -99,5 +97,3 @@ void menu_no_input(MenuData *menu);
float menu_fade(MenuData *menu);
bool menu_input_handler(SDL_Event *event, void *arg);
#endif // IGUARD_menu_menu_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_musicroom_h
#define IGUARD_menu_musicroom_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData* create_musicroom_menu(void);
#endif // IGUARD_menu_musicroom_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_options_h
#define IGUARD_menu_options_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData* create_options_menu(void);
void draw_options_menu_bg(MenuData*);
#endif // IGUARD_menu_options_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_replayview_h
#define IGUARD_menu_replayview_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData* create_replayview_menu(void);
#endif // IGUARD_menu_replayview_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_savereplay_h
#define IGUARD_menu_savereplay_h
#pragma once
#include "taisei.h"
#include "menu.h"
@ -17,5 +15,3 @@
void ask_save_replay(Replay *rpy, CallChain next)
attr_nonnull(1);
#endif // IGUARD_menu_savereplay_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_spellpractice_h
#define IGUARD_menu_spellpractice_h
#pragma once
#include "taisei.h"
#include "menu.h"
MenuData* create_spell_menu(void);
#endif // IGUARD_menu_spellpractice_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_stagepractice_h
#define IGUARD_menu_stagepractice_h
#pragma once
#include "taisei.h"
#include "menu.h"
#include "difficulty.h"
MenuData* create_stgpract_menu(Difficulty diff);
#endif // IGUARD_menu_stagepractice_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_stageselect_h
#define IGUARD_menu_stageselect_h
#pragma once
#include "taisei.h"
#include "menu.h"
@ -16,5 +14,3 @@
#define STGMENU_MAX_TITLE_LENGTH 128
MenuData* create_stage_menu(void);
#endif // IGUARD_menu_stageselect_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_menu_submenus_h
#define IGUARD_menu_submenus_h
#pragma once
#include "taisei.h"
#include "menu.h"
@ -19,5 +17,3 @@ void menu_action_enter_replayview(MenuData *menu, void *arg);
void menu_action_enter_spellpractice(MenuData *menu, void *arg);
void menu_action_enter_stagepractice(MenuData *menu, void *arg);
void menu_action_enter_media(MenuData *menu, void *arg);
#endif // IGUARD_menu_submenus_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_move_h
#define IGUARD_move_h
#pragma once
#include "taisei.h"
/*
@ -66,5 +64,3 @@ INLINE MoveParams move_towards_power(cmplx target, cmplx attraction, real expone
INLINE MoveParams move_stop(cmplx retention) {
return (MoveParams) { .retention = retention };
}
#endif // IGUARD_move_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_objectpool_h
#define IGUARD_objectpool_h
#pragma once
#include "taisei.h"
#include "list.h"
@ -49,5 +47,3 @@ void objpool_memtest(ObjectPool *pool, void *object) attr_nonnull(1, 2);
#else
#define objpool_memtest(pool, object) ((void)(pool), (void)(object))
#endif
#endif // IGUARD_objectpool_h

View file

@ -6,11 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_pch_taisei_pch_h
#define IGUARD_pch_taisei_pch_h
#pragma once
#include "taisei.h"
#include "global.h"
#endif // IGUARD_pch_taisei_pch_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_pixmap_fileformats_fileformats_h
#define IGUARD_pixmap_fileformats_fileformats_h
#pragma once
#include "taisei.h"
#include <SDL.h>
@ -26,5 +24,3 @@ typedef struct PixmapFileFormatHandler {
extern PixmapFileFormatHandler pixmap_fileformat_internal;
extern PixmapFileFormatHandler pixmap_fileformat_png;
extern PixmapFileFormatHandler pixmap_fileformat_webp;
#endif // IGUARD_pixmap_fileformats_fileformats_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_pixmap_pixmap_h
#define IGUARD_pixmap_pixmap_h
#pragma once
#include "taisei.h"
#include <SDL.h>
@ -322,5 +320,3 @@ uint32_t pixmap_data_size(PixmapFormat format, uint32_t width, uint32_t height);
SwizzleMask swizzle_canonize(SwizzleMask sw_in);
bool swizzle_is_valid(SwizzleMask sw);
bool swizzle_is_significant(SwizzleMask sw, uint num_significant_channels);
#endif // IGUARD_pixmap_pixmap_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_player_h
#define IGUARD_player_h
#pragma once
#include "taisei.h"
#ifdef DEBUG
@ -246,5 +244,3 @@ void player_preload(void);
cmplx plrutil_homing_target(cmplx org, cmplx fallback);
void plrutil_slave_retract(BoxedPlayer bplr, cmplx *pos, real retract_time);
#endif // IGUARD_player_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_h
#define IGUARD_plrmodes_h
#pragma once
#include "taisei.h"
#include "enemy.h"
@ -110,5 +108,3 @@ PlayerMode *plrmode_parse(const char *name);
void plrmode_preload(PlayerMode *mode);
double player_property(Player *plr, PlrProperty prop);
#endif // IGUARD_plrmodes_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_entities_h
#define IGUARD_plrmodes_entities_h
#pragma once
#include "taisei.h"
#include "reimu_a_entities.h"
@ -27,5 +25,3 @@
ENTITIES_MarisaB(X, __VA_ARGS__) \
ENTITIES_YoumuA(X, __VA_ARGS__) \
ENTITIES_YoumuB(X, __VA_ARGS__) \
#endif // IGUARD_plrmodes_entities_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_marisa_h
#define IGUARD_plrmodes_marisa_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
@ -34,5 +32,3 @@ DECLARE_EXTERN_TASK(marisa_common_shot_forward, {
real damage;
int delay;
});
#endif // IGUARD_plrmodes_marisa_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_marisa_a_h
#define IGUARD_plrmodes_marisa_a_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
extern PlayerMode plrmode_marisa_a;
#endif // IGUARD_plrmodes_marisa_a_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_marisa_a_entities_h
#define IGUARD_plrmodes_marisa_a_entities_h
#pragma once
#include "taisei.h"
#define ENTITIES_MarisaA(X, ...) \
X(MarisaAController, __VA_ARGS__) \
X(MarisaAMasterSpark, __VA_ARGS__) \
X(MarisaASlave, __VA_ARGS__) \
#endif // IGUARD_plrmodes_marisa_a_entities_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_marisa_b_h
#define IGUARD_plrmodes_marisa_b_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
extern PlayerMode plrmode_marisa_b;
#endif // IGUARD_plrmodes_marisa_b_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_marisa_b_entities_h
#define IGUARD_plrmodes_marisa_b_entities_h
#pragma once
#include "taisei.h"
#define ENTITIES_MarisaB(X, ...) \
X(MarisaBSlave, __VA_ARGS__) \
X(MarisaBOrbiter, __VA_ARGS__) \
X(MarisaBBeams, __VA_ARGS__) \
#endif // IGUARD_plrmodes_marisa_b_entities_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_reimu_h
#define IGUARD_plrmodes_reimu_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
@ -22,5 +20,3 @@ double reimu_common_property(Player *plr, PlrProperty prop);
Projectile *reimu_common_ofuda_swawn_trail(Projectile *p);
void reimu_common_bomb_bg(Player *p, float alpha);
void reimu_common_bomb_buffer_init(void);
#endif // IGUARD_plrmodes_reimu_h

View file

@ -6,12 +6,8 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_reimu_a_entities_h
#define IGUARD_plrmodes_reimu_a_entities_h
#pragma once
#include "taisei.h"
#define ENTITIES_ReimuA(X, ...) \
X(ReimuASlave, __VA_ARGS__) \
#endif // IGUARD_plrmodes_reimu_a_entities_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_reimu_b_entities_h
#define IGUARD_plrmodes_reimu_b_entities_h
#pragma once
#include "taisei.h"
#define ENTITIES_ReimuB(X, ...) \
X(ReimuBController, __VA_ARGS__) \
X(ReimuBSlave, __VA_ARGS__) \
#endif // IGUARD_plrmodes_reimu_b_entities_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_youmu_h
#define IGUARD_plrmodes_youmu_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
@ -32,5 +30,3 @@ Projectile *youmu_common_shot(cmplx pos, MoveParams move, real dmg, ShaderProgra
void youmu_common_init_bomb_background(YoumuBombBGData *bg_data);
DECLARE_EXTERN_TASK(youmu_common_bomb_background, { BoxedPlayer plr; YoumuBombBGData *bg_data; });
#endif // IGUARD_plrmodes_youmu_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_youmu_a_h
#define IGUARD_plrmodes_youmu_a_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
extern PlayerMode plrmode_youmu_a;
#endif // IGUARD_plrmodes_youmu_a_h

View file

@ -6,11 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_youmu_a_entities_h
#define IGUARD_plrmodes_youmu_a_entities_h
#pragma once
#include "taisei.h"
#define ENTITIES_YoumuA(X, ...) \
#endif // IGUARD_plrmodes_youmu_a_entities_h

View file

@ -6,13 +6,9 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_youmu_b_h
#define IGUARD_plrmodes_youmu_b_h
#pragma once
#include "taisei.h"
#include "plrmodes.h"
extern PlayerMode plrmode_youmu_b;
#endif // IGUARD_plrmodes_youmu_b_h

View file

@ -6,11 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_plrmodes_youmu_b_entities_h
#define IGUARD_plrmodes_youmu_b_entities_h
#pragma once
#include "taisei.h"
#define ENTITIES_YoumuB(X, ...) \
#endif // IGUARD_plrmodes_youmu_b_entities_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_portrait_h
#define IGUARD_portrait_h
#pragma once
#include "taisei.h"
#include "resource/sprite.h"
@ -46,5 +44,3 @@ void portrait_render(Sprite *s_base, Sprite *s_face, Sprite *s_out)
void portrait_render_byname(const char *charname, const char *variant, const char *face, Sprite *s_out)
attr_nonnull(1, 3, 4);
#endif // IGUARD_portrait_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_progress_h
#define IGUARD_progress_h
#pragma once
#include "taisei.h"
#include <SDL.h>
@ -125,5 +123,3 @@ void progress_unlock_bgm(const char *name);
void progress_track_ending(EndingID id);
bool progress_is_cutscene_unlocked(CutsceneID id);
void progress_unlock_cutscene(CutsceneID id);
#endif // IGUARD_progress_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_projectile_h
#define IGUARD_projectile_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -290,5 +288,3 @@ float projectile_timeout_factor(Projectile *p);
int projectile_time(Projectile *p);
SpriteParams projectile_sprite_params(Projectile *proj, SpriteParamsBuffer *spbuf);
#endif // IGUARD_projectile_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_random_h
#define IGUARD_random_h
#pragma once
#include "taisei.h"
#include "util/crap.h"
@ -171,5 +169,3 @@ double _anfrand(int idx, const char *file, uint line) RNG_DEPRECATED;
#define anfrand(idx) _anfrand(idx, __FILE__, __LINE__)
#define TSRAND_ARRAY_LIMIT 16
#endif // IGUARD_random_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_refs_h
#define IGUARD_refs_h
#pragma once
#include "taisei.h"
/*
@ -37,5 +35,3 @@ void free_ref(int i);
void free_all_refs(void);
#define UPDATE_REF(ref, ptr) ((ptr) = REF(ref))
#endif // IGUARD_refs_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_api_h
#define IGUARD_renderer_api_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -995,5 +993,3 @@ INLINE
bool r_supports(RendererFeature feature) {
return r_features() & r_feature_bit(feature);
}
#endif // IGUARD_renderer_api_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_backend_h
#define IGUARD_renderer_common_backend_h
#pragma once
#include "taisei.h"
#include "../api.h"
@ -139,5 +137,3 @@ extern RendererBackend _r_backend;
void _r_backend_init(void);
void _r_backend_inherit(RendererBackend *dest, const RendererBackend *base);
#endif // IGUARD_renderer_common_backend_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_matstack_h
#define IGUARD_renderer_common_matstack_h
#pragma once
#include "taisei.h"
#include "util.h"
@ -64,5 +62,3 @@ typedef struct MatrixStates {
extern MatrixStates _r_matrices;
void _r_mat_init(void);
#endif // IGUARD_renderer_common_matstack_h

View file

@ -6,12 +6,8 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_models_h
#define IGUARD_renderer_common_models_h
#pragma once
#include "taisei.h"
void _r_models_init(void);
void _r_models_shutdown(void);
#endif // IGUARD_renderer_common_models_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_shaderlib_cache_h
#define IGUARD_renderer_common_shaderlib_cache_h
#pragma once
#include "taisei.h"
#include "defs.h"
@ -27,5 +25,3 @@ bool shader_cache_get(const char *hash, const char *key, ShaderSource *out_src)
bool shader_cache_set(const char *hash, const char *key, const ShaderSource *src)
attr_nonnull(1, 2, 3);
#endif // IGUARD_renderer_common_shaderlib_cache_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_shaderlib_defs_h
#define IGUARD_renderer_common_shaderlib_defs_h
#pragma once
#include "taisei.h"
typedef enum ShaderStage {
@ -31,5 +29,3 @@ typedef struct ShaderMacro {
typedef struct ShaderSource ShaderSource;
typedef struct ShaderLangInfo ShaderLangInfo;
typedef union ShaderSourceMeta ShaderSourceMeta;
#endif // IGUARD_renderer_common_shaderlib_defs_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_shaderlib_lang_glsl_h
#define IGUARD_renderer_common_shaderlib_lang_glsl_h
#pragma once
#include "taisei.h"
#include "defs.h"
@ -51,5 +49,3 @@ char *glsl_parse_version(const char *str, GLSLVersion *out_version) attr_nonnull
int glsl_format_version(char *buf, size_t bufsize, GLSLVersion version) attr_nonnull(1);
void glsl_free_source(ShaderSource *src) attr_nonnull(1);
bool glsl_version_supports_instanced_rendering(GLSLVersion v);
#endif // IGUARD_renderer_common_shaderlib_lang_glsl_h

View file

@ -6,9 +6,7 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_shaderlib_lang_spirv_h
#define IGUARD_renderer_common_shaderlib_lang_spirv_h
#pragma once
#include "taisei.h"
#include "defs.h"
@ -53,5 +51,3 @@ void spirv_shutdown_compiler(void);
bool spirv_transpile(const ShaderSource *in, ShaderSource *out, const SPIRVTranspileOptions *options) attr_nonnull(1, 2, 3);
bool spirv_compile(const ShaderSource *in, ShaderSource *out, const SPIRVCompileOptions *options) attr_nonnull(1, 2, 3);
bool spirv_decompile(const ShaderSource *in, ShaderSource *out, const SPIRVDecompileOptions *options) attr_nonnull(1, 2, 3);
#endif // IGUARD_renderer_common_shaderlib_lang_spirv_h

View file

@ -6,14 +6,10 @@
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_renderer_common_shaderlib_lang_spirv_private_h
#define IGUARD_renderer_common_shaderlib_lang_spirv_private_h
#pragma once
#include "taisei.h"
#include "lang_spirv.h"
bool _spirv_compile(const ShaderSource *in, ShaderSource *out, const SPIRVCompileOptions *options) attr_nonnull(1, 2, 3);
bool _spirv_decompile(const ShaderSource *in, ShaderSource *out, const SPIRVDecompileOptions *options) attr_nonnull(1, 2, 3);
#endif // IGUARD_renderer_common_shaderlib_lang_spirv_private_h

Some files were not shown because too many files have changed in this diff Show more