Spicy
hilti-fwd.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <string>
6 #include <utility>
7 
8 #include <hilti/rt/fmt.h>
9 #include <hilti/rt/logging.h>
10 #include <hilti/rt/util.h>
11 
12 namespace spicy::rt {
13 
15 template<typename... Args>
16 auto fmt(const std::string& s, const Args&... args) {
17  return hilti::rt::fmt(s, args...);
18 }
19 
25 inline void internalError(const std::string& msg) { hilti::rt::internalError(msg); }
26 
32 inline void fatalError(const std::string& msg) { hilti::rt::fatalError(msg); }
33 
34 } // namespace spicy::rt
void fatalError(const std::string &msg) __attribute__((noreturn))
Definition: logging.cc:21
void internalError(const std::string &msg) __attribute__((noreturn))
Definition: logging.cc:16
std::string fmt(const char *fmt, const Args &... args)
Definition: fmt.h:13