Unixでコンパイル出来る様に

守矢諏訪子 <suwako@076.moe>、2026-06-29 04:05
コミット 2b4e4eacc5ae81f294e5d6b25204bf946cc873c9 ・親 6808629 ・ファイルを見る

2個のファイル、+3 -1

@@ -25,6 +25,7 @@
2525 #define VECTOR_HH
2626
2727 #include <util/types.hh>
28+#include <cmath>
2829
2930 union Vector2 {
3031 struct Position {
@@ -39,6 +39,7 @@
3939 #include <sqlite3.h>
4040 #include <iostream>
4141 #include <cassert>
42+#include <stdexcept>
4243
4344 namespace db {
4445 void getShaderCode(sqlitepp::Instance &db, ShaderData &data) {
@@ -68,7 +69,7 @@
6869 data.luaCode.code = code;
6970 data.luaCode.filename = filename;
7071 } else {
71- throw std::exception("未対応コード類。");
72+ throw std::runtime_error("未対応コード類。");
7273 }
7374 }
7475 }