Mozzi  alpha 0.01.1m
sound synthesis library for Arduino
 All Classes Functions
Test.h
00001 
00002 
00003 #ifndef TEST_H_
00004 #define TEST_H_
00005 
00006 #include "Arduino.h"
00007 
00012 template <int NUM>
00013 class Test
00014 {
00015 private:
00016                 int n;
00017 
00018 public:
00021                 Test():n(NUM)
00022                 {
00023                                 #if (NUM > 0)
00024                                 #error num is greater than 0
00025                                 #endif
00026                                 ;
00027                 }
00028 
00029 
00032                 inline
00033                 int get()
00034                 {
00035                                 return n;
00036                 }
00037 
00038 };
00039 
00040 
00041 
00042 
00043 #endif /* TEST_H_ */
00044 
00045