[DEV] replace 'include guard' with 'pragma once'

This commit is contained in:
Edouard DUPIN 2016-02-02 21:18:54 +01:00
parent e90271754f
commit b5bdb4e2db
24 changed files with 35 additions and 101 deletions

View File

@ -4,9 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_API_H__
#define __AUDIO_ORCHESTRA_API_H__
#include <sstream> #include <sstream>
#include <audio/orchestra/debug.h> #include <audio/orchestra/debug.h>
@ -175,4 +173,3 @@ namespace audio {
} }
} }
#endif

View File

@ -4,14 +4,11 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_DEVICE_INFO_H__
#define __AUDIO_ORCHESTRA_DEVICE_INFO_H__
#include <audio/format.h> #include <audio/format.h>
#include <audio/channel.h> #include <audio/channel.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
/** /**
@ -50,5 +47,3 @@ namespace audio {
} }
} }
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_FLAGS_H__
#define __AUDIO_ORCHESTRA_FLAGS_H__
#include <etk/types.h> #include <etk/types.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
class Flags { class Flags {
@ -23,5 +20,3 @@ namespace audio {
}; };
} }
} }
#endif

View File

@ -4,9 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_INTERFACE_H__
#define __AUDIO_ORCHESTRA_INTERFACE_H__
#include <string> #include <string>
#include <vector> #include <vector>
@ -307,4 +305,3 @@ namespace audio {
} }
} }
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_STREAM_OPTION_H__
#define __AUDIO_ORCHESTRA_STREAM_OPTION_H__
#include <audio/orchestra/Flags.h> #include <audio/orchestra/Flags.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
enum timestampMode { enum timestampMode {
@ -35,5 +32,3 @@ namespace audio {
} }
} }
#endif

View File

@ -4,10 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_STREAM_PARAMETER_H__
#define __AUDIO_ORCHESTRA_STREAM_PARAMETER_H__
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
@ -31,5 +28,3 @@ namespace audio {
} }
} }
#endif

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_ALSA_H__) && defined(ORCHESTRA_BUILD_ALSA) #ifdef ORCHESTRA_BUILD_ALSA
#define __AUDIO_ORCHESTRA_API_ALSA_H__
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {

View File

@ -3,9 +3,9 @@
* @copyright 2011, Edouard DUPIN, all right reserved * @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_ANDROID_H__) && defined(ORCHESTRA_BUILD_JAVA) #ifdef ORCHESTRA_BUILD_JAVA
#define __AUDIO_ORCHESTRA_API_ANDROID_H__
#include <audio/orchestra/Interface.h> #include <audio/orchestra/Interface.h>

View File

@ -3,9 +3,9 @@
* @copyright 2011, Edouard DUPIN, all right reserved * @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_ANDROID_NATIVE_H__) && defined(ORCHESTRA_BUILD_JAVA) #ifdef ORCHESTRA_BUILD_JAVA
#define __AUDIO_ORCHESTRA_API_ANDROID_NATIVE_H__
#include <audio/orchestra/DeviceInfo.h> #include <audio/orchestra/DeviceInfo.h>
#include <audio/orchestra/mode.h> #include <audio/orchestra/mode.h>

View File

@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_ASIO_H__) && defined(ORCHESTRA_BUILD_ASIO) #ifdef ORCHESTRA_BUILD_ASIO
#define __AUDIO_ORCHESTRA_API_ASIO_H__
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {

View File

@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_CORE_H__) && defined(ORCHESTRA_BUILD_MACOSX_CORE) #ifdef ORCHESTRA_BUILD_MACOSX_CORE
#define __AUDIO_ORCHESTRA_API_CORE_H__
#include <CoreAudio/AudioHardware.h> #include <CoreAudio/AudioHardware.h>

View File

@ -4,10 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_CORE_IOS_H__) && defined(ORCHESTRA_BUILD_IOS_CORE) #ifdef ORCHESTRA_BUILD_IOS_CORE
#define __AUDIO_ORCHESTRA_API_CORE_IOS_H__
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {

View File

@ -4,10 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_DS_H__) && defined(ORCHESTRA_BUILD_DS) #ifdef ORCHESTRA_BUILD_DS
#define __AUDIO_ORCHESTRA_API_DS_H__
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {

View File

@ -4,13 +4,12 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_DUMMY__) && defined(ORCHESTRA_BUILD_DUMMY) #ifdef ORCHESTRA_BUILD_DUMMY
#define __AUDIO_ORCHESTRA_DUMMY__
#include <audio/orchestra/Interface.h> #include <audio/orchestra/Interface.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
namespace api { namespace api {

View File

@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_JACK_H__) && defined(ORCHESTRA_BUILD_JACK) #ifdef ORCHESTRA_BUILD_JACK
#define __AUDIO_ORCHESTRA_API_JACK_H__
#include <jack/jack.h> #include <jack/jack.h>

View File

@ -4,10 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_PULSE_H__) && defined(ORCHESTRA_BUILD_PULSE) #ifdef ORCHESTRA_BUILD_PULSE
#define __AUDIO_ORCHESTRA_API_PULSE_H__
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {

View File

@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#if !defined(__AUDIO_ORCHESTRA_API_PULSE_DEVICE_H__) && defined(ORCHESTRA_BUILD_PULSE) #ifdef ORCHESTRA_BUILD_PULSE
#define __AUDIO_ORCHESTRA_API_PULSE_DEVICE_H__
#include <etk/types.h> #include <etk/types.h>
#include <audio/orchestra/DeviceInfo.h> #include <audio/orchestra/DeviceInfo.h>

View File

@ -4,9 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_CB_H__
#define __AUDIO_ORCHESTRA_CB_H__
#include <thread> #include <thread>
#include <condition_variable> #include <condition_variable>
#include <mutex> #include <mutex>
@ -24,7 +23,3 @@
#include <audio/orchestra/StreamOptions.h> #include <audio/orchestra/StreamOptions.h>
#include <audio/orchestra/StreamParameters.h> #include <audio/orchestra/StreamParameters.h>
#endif

View File

@ -4,9 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_DEBUG_H__
#define __AUDIO_ORCHESTRA_DEBUG_H__
#include <etk/log.h> #include <etk/log.h>
@ -41,5 +39,3 @@ namespace audio {
} \ } \
} while (0) } while (0)
#endif

View File

@ -4,9 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_ERROR_H__
#define __AUDIO_ORCHESTRA_ERROR_H__
#include <etk/types.h> #include <etk/types.h>
@ -22,5 +20,3 @@ namespace audio {
}; };
} }
} }
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_MODE_H__
#define __AUDIO_ORCHESTRA_MODE_H__
#include <etk/types.h> #include <etk/types.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
enum mode { enum mode {
@ -24,4 +21,3 @@ namespace audio {
std::ostream& operator <<(std::ostream& _os, enum audio::orchestra::mode _obj); std::ostream& operator <<(std::ostream& _os, enum audio::orchestra::mode _obj);
} }
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_STATE_H__
#define __AUDIO_ORCHESTRA_STATE_H__
#include <etk/types.h> #include <etk/types.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
enum state { enum state {
@ -22,4 +19,3 @@ namespace audio {
} }
} }
#endif

View File

@ -4,13 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_STATUS_H__
#define __AUDIO_ORCHESTRA_STATUS_H__
#include <etk/types.h> #include <etk/types.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
enum status { enum status {
@ -23,4 +20,3 @@ namespace audio {
} }
} }
#endif

View File

@ -4,14 +4,11 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
* @fork from RTAudio * @fork from RTAudio
*/ */
#pragma once
#ifndef __AUDIO_ORCHESTRA_TYPE_H__
#define __AUDIO_ORCHESTRA_TYPE_H__
#include <etk/types.h> #include <etk/types.h>
#include <etk/stdTools.h> #include <etk/stdTools.h>
namespace audio { namespace audio {
namespace orchestra { namespace orchestra {
/** /**
@ -31,4 +28,3 @@ namespace audio {
} }
} }
#endif