Skip to content

Commit

Permalink
[Maintenance] #pragma once has no effect?
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nmlgc committed Dec 22, 2019
1 parent 1d6fbb8 commit c5b07b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions defconv.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions th03/math/subpixel.hpp
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit c5b07b7

Please sign in to comment.