aboutsummaryrefslogtreecommitdiff
path: root/src/tests/formula.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-10-20 20:51:59 +0000
committerMike Buland <eichlan@xagasoft.com>2007-10-20 20:51:59 +0000
commit6e106a2cc52e3857cbd55d67d54b4589f3425c51 (patch)
tree370dbdcd1f4c2b047b183387c052a339c25e8591 /src/tests/formula.cpp
parentaddca63bba3ddaf212e44cdf16e95038b0a5bf3e (diff)
downloadlibbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.tar.gz
libbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.tar.bz2
libbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.tar.xz
libbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.zip
Made the logger use a uint32_t for it's mask, no more negative confusion. Also
brought back the formula class with some cool twists, and added a basic stack class, very cute, fast, and little.
Diffstat (limited to 'src/tests/formula.cpp')
-rw-r--r--src/tests/formula.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/formula.cpp b/src/tests/formula.cpp
new file mode 100644
index 0000000..5237b87
--- /dev/null
+++ b/src/tests/formula.cpp
@@ -0,0 +1,11 @@
1#include "bu/formula.h"
2
3int main( int argc, char *argv[] )
4{
5 Bu::Formula<uint32_t> uForm;
6 Bu::Formula<double> dForm;
7
8 printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) );
9 printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) );
10}
11