From c5b07b746e0520304f82af330902cd8829bc0b44 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Thu, 19 Dec 2019 10:10:19 +0100 Subject: [PATCH] [Maintenance] `#pragma once` has no effect? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should have remembered this from all the times I've looked at the list of #pragma directives supported by Turbo C++… Still, I would have at least expected a warning, but not even the `ill` warning covers this. Part of P0062, funded by Touhou Patch Center. --- defconv.h | 2 -- th03/math/subpixel.hpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/defconv.h b/defconv.h index 070a46be..06b2efd5 100644 --- a/defconv.h +++ b/defconv.h @@ -1,7 +1,5 @@ // Common calling convention macro for some functions that originated in TH02 // as __cdecl, but were then changed to __pascal in TH03. -#pragma once - #ifndef GAME # error GAME not defined #elif GAME >= 3 diff --git a/th03/math/subpixel.hpp b/th03/math/subpixel.hpp index 88c17322..8971d9bc 100644 --- a/th03/math/subpixel.hpp +++ b/th03/math/subpixel.hpp @@ -1,8 +1,6 @@ // Fixed-point format for expressing world-space coordinates, with 4 bits of // fractional resolution. -#pragma once - typedef int subpixel_t; inline subpixel_t to_sp(float screen_v) {