00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef KL_ERROR_H
00011 #define KL_ERROR_H
00012
00013 #include "kl_fwd.h"
00014
00015
00016
00017 namespace atlas {
00018
00019 namespace kl_error {
00020
00021 struct KLError;
00022
00023 }
00024
00025
00026
00027 namespace kl_error {
00028
00029 struct KLError {
00030
00031 size_t x;
00032 size_t y;
00033 int line;
00034 const kl::KLContext* klc;
00035
00036 KLError(size_t x, size_t y, int line, const kl::KLContext& klc)
00037 :x(x), y(y), line(line), klc(&klc) {}
00038
00039 void operator() (const char*) const;
00040 };
00041
00042 }
00043
00044 }
00045
00046 #endif