/* * Copyright (C) 2014 Pavel Kirienko */ #pragma once #include namespace uavcan { /** * Usage: * StaticAssert::check(); */ template struct StaticAssert { #if __CDT_PARSER__ static void check() { assert(0); } #endif }; template <> struct StaticAssert { static void check() { } }; /** * Usage: * ShowIntegerAsError::foobar(); */ template struct ShowIntegerAsError; }