@@ -52,7 +52,7 @@ enum ErrorLevel {
5252
5353typedef void (*CustomErrorCallback)(const Error& error, ErrorLevel level);
5454
55- Error format_error (const char * source_file, int source_line, const char * format, ...);
55+ Error format_error (const char * source_file, s32 source_line, const char * format, ...);
5656void report_error (const Error& error);
5757void report_warning (const Error& warning);
5858void set_custom_error_callback (CustomErrorCallback callback);
@@ -155,9 +155,9 @@ class [[nodiscard]] CCC_WARN_UNUSED Result {
155155};
156156
157157template <>
158- class [[nodiscard]] CCC_WARN_UNUSED Result<void > : public Result<int > {
158+ class [[nodiscard]] CCC_WARN_UNUSED Result<void > : public Result<s32 > {
159159public:
160- Result () : Result<int >(0 ) {}
160+ Result () : Result<s32 >(0 ) {}
161161
162162 // Used to propagate errors up the call stack.
163163 template <typename OtherValue>
@@ -168,7 +168,7 @@ class [[nodiscard]] CCC_WARN_UNUSED Result<void> : public Result<int> {
168168 }
169169};
170170
171- #define CCC_FAILURE (...) ccc::Result<int >::failure(ccc::format_error(__FILE__, __LINE__, __VA_ARGS__))
171+ #define CCC_FAILURE (...) ccc::Result<s32 >::failure(ccc::format_error(__FILE__, __LINE__, __VA_ARGS__))
172172
173173#define CCC_CHECK (condition, ...) \
174174 if (!(condition)) { \
@@ -197,7 +197,7 @@ class [[nodiscard]] CCC_WARN_UNUSED Result<void> : public Result<int> {
197197 }
198198
199199template <typename ... Args>
200- void warn_impl (const char * source_file, int source_line, const char * format, Args... args)
200+ void warn_impl (const char * source_file, s32 source_line, const char * format, Args... args)
201201{
202202 Error warning = format_error (source_file, source_line, format, args...);
203203 report_warning (warning);
0 commit comments