mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move UndefMacros from libdevcore to libsolidity/parsing
This commit is contained in:
parent
d230048dc8
commit
b615b01449
@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
#include <libdevcore/Common.h>
|
#include <libdevcore/Common.h>
|
||||||
#include <libdevcore/CommonIO.h>
|
#include <libdevcore/CommonIO.h>
|
||||||
#include <libdevcore/UndefMacros.h>
|
|
||||||
|
|
||||||
#include <boost/noncopyable.hpp>
|
#include <boost/noncopyable.hpp>
|
||||||
#include <boost/rational.hpp>
|
#include <boost/rational.hpp>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
#include <libdevcore/Common.h>
|
#include <libdevcore/Common.h>
|
||||||
#include <libsolidity/interface/Exceptions.h>
|
#include <libsolidity/interface/Exceptions.h>
|
||||||
#include <libdevcore/UndefMacros.h>
|
#include <libsolidity/parsing/UndefMacros.h>
|
||||||
|
|
||||||
namespace dev
|
namespace dev
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* @date 2015
|
* @date 2015
|
||||||
*
|
*
|
||||||
* This header should be used to #undef some really evil macros defined by
|
* This header should be used to #undef some really evil macros defined by
|
||||||
* windows.h which result in conflict with our libsolidity/Token.h
|
* windows.h which result in conflict with our Token.h
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include "libdevcore/UndefMacros.h"
|
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
@ -9622,7 +9622,7 @@ BOOST_AUTO_TEST_CASE(scientific_notation)
|
|||||||
BOOST_CHECK(callContractFunction("k()") == encodeArgs(u256(-25)));
|
BOOST_CHECK(callContractFunction("k()") == encodeArgs(u256(-25)));
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(interface)
|
BOOST_AUTO_TEST_CASE(interface_contract)
|
||||||
{
|
{
|
||||||
char const* sourceCode = R"(
|
char const* sourceCode = R"(
|
||||||
interface I {
|
interface I {
|
||||||
|
Loading…
Reference in New Issue
Block a user