Unixでコンパイル出来る様に
守矢諏訪子 <suwako@076.moe>、2026-06-29 04:05
コミット 2b4e4eacc5ae81f294e5d6b25204bf946cc873c9
・親 6808629
・ファイルを見る
2個のファイル、+3 -1
| @@ -25,6 +25,7 @@ | ||
| 25 | 25 | #define VECTOR_HH |
| 26 | 26 | |
| 27 | 27 | #include <util/types.hh> |
| 28 | +#include <cmath> | |
| 28 | 29 | |
| 29 | 30 | union Vector2 { |
| 30 | 31 | struct Position { |
| @@ -39,6 +39,7 @@ | ||
| 39 | 39 | #include <sqlite3.h> |
| 40 | 40 | #include <iostream> |
| 41 | 41 | #include <cassert> |
| 42 | +#include <stdexcept> | |
| 42 | 43 | |
| 43 | 44 | namespace db { |
| 44 | 45 | void getShaderCode(sqlitepp::Instance &db, ShaderData &data) { |
| @@ -68,7 +69,7 @@ | ||
| 68 | 69 | data.luaCode.code = code; |
| 69 | 70 | data.luaCode.filename = filename; |
| 70 | 71 | } else { |
| 71 | - throw std::exception("未対応コード類。"); | |
| 72 | + throw std::runtime_error("未対応コード類。"); | |
| 72 | 73 | } |
| 73 | 74 | } |
| 74 | 75 | } |