mirror of
https://github.com/daniel5151/ANESE.git
synced 2025-04-02 10:32:00 -04:00
I started looking into how to make the APU, and boy, let me tell ya, it's going to be a massive undertaking. Undoubtedly a fun undertaking, but still... Since it's a personal goal to get Super Mario Bros 2 running before new years (after all, that game has won game-of-the-year i don't even know _how_ many years in a row), i've decided to just use Blargg's venerable `nes_snd_emu` library for now. It took some wrestling, it it's in, and it works! Almost. I still don't know why enabling the Frame IRQ kills most games, but i'll look into that! Welp, on to bigger and better things! Namely: MMC1, which will give me Zelda and... Super Mario Bros 2!
22 lines
594 B
C++
22 lines
594 B
C++
|
|
// Boost substitute. For full boost library see http://boost.org
|
|
|
|
#ifndef BOOST_STATIC_ASSERT_HPP
|
|
#define BOOST_STATIC_ASSERT_HPP
|
|
|
|
#if defined (_MSC_VER) && _MSC_VER <= 1200
|
|
// MSVC6 can't handle the ##line concatenation
|
|
#define BOOST_STATIC_ASSERT( expr ) struct { int n [1 / ((expr) ? 1 : 0)]; }
|
|
|
|
#else
|
|
#define BOOST_STATIC_ASSERT3( expr, line ) \
|
|
typedef int boost_static_assert_##line [1 / ((expr) ? 1 : 0)]
|
|
|
|
#define BOOST_STATIC_ASSERT2( expr, line ) BOOST_STATIC_ASSERT3( expr, line )
|
|
|
|
#define BOOST_STATIC_ASSERT( expr ) BOOST_STATIC_ASSERT2( expr, __LINE__ )
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|