
#ifndef DKUTIL_DEFINE_HPP
#define DKUTIL_DEFINE_HPP


#include <dkutil/config.hpp>
#include <dkutil/macro.hpp>
#include <dkutil_c/dkc.h>

namespace dkutil{
	
///妥当なテンポラリバッファのサイズを取得する関数のマクロ
#define DKUTIL_PROPER_TEMPORARY_BUFFER_SIZE() dkcGetProperTemporaryBufferSize()

#define DKUTIL_DEFINE_DERIVE_STANDARD_RUNTIME_ERROR(type_name) \
class type_name : public std::runtime_error{ \
public:\
	type_name##(const char *str) : std::runtime_error(str){} \
	type_name##(const std::string &str) : std::runtime_error(str){} \
};




}//end of dkutil namespace


#endif