Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing exports for basic string forward declaration & error handling functions #56

Merged
merged 1 commit into from
Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/c4/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct fail_type__ {};
#endif

namespace c4 {
bool is_debugger_attached();
bool C4CORE_EXPORT is_debugger_attached();
} // namespace c4


Expand Down Expand Up @@ -123,13 +123,13 @@ typedef enum : uint32_t {
ON_ERROR_DEFAULTS = ON_ERROR_DEBUGBREAK|ON_ERROR_LOG|ON_ERROR_CALLBACK|ON_ERROR_ABORT
} ErrorFlags_e;
using error_flags = uint32_t;
void set_error_flags(error_flags f);
error_flags get_error_flags();
C4CORE_EXPORT void set_error_flags(error_flags f);
C4CORE_EXPORT error_flags get_error_flags();


using error_callback_type = void (*)(const char* msg, size_t msg_size);
void set_error_callback(error_callback_type cb);
error_callback_type get_error_callback();
C4CORE_EXPORT void set_error_callback(error_callback_type cb);
C4CORE_EXPORT error_callback_type get_error_callback();


//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -171,8 +171,8 @@ struct ScopedErrorSettings
/** source location */
struct srcloc;

void handle_error(srcloc s, const char *fmt, ...);
void handle_warning(srcloc s, const char *fmt, ...);
C4CORE_EXPORT void handle_error(srcloc s, const char *fmt, ...);
C4CORE_EXPORT void handle_warning(srcloc s, const char *fmt, ...);


# define C4_ERROR(msg, ...) \
Expand Down
2 changes: 1 addition & 1 deletion src/c4/substr_fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace c4 {

#ifndef DOXYGEN
template<class C> struct basic_substring;
template<class C> struct C4CORE_EXPORT basic_substring;
using csubstr = C4CORE_EXPORT basic_substring<const char>;
using substr = C4CORE_EXPORT basic_substring<char>;
#endif // !DOXYGEN
Expand Down