Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use macro from common
[kaka/rust-sdl-test.git]
/
src
/
app.rs
diff --git
a/src/app.rs
b/src/app.rs
index
c8f8665
..
4972dfc
100644
(file)
--- a/
src/app.rs
+++ b/
src/app.rs
@@
-12,10
+12,7
@@
use boll::*;
use common::Point2D;
use sprites::SpriteManager;
use NS_PER_FRAME;
use common::Point2D;
use sprites::SpriteManager;
use NS_PER_FRAME;
-
-macro_rules! point { // because I don't know how to import it from common.rs ...
- ( $x:expr, $y:expr ) => { Point2D { x:$x, y:$y } };
-}
+use point; // defined in common, but loaded from main...
pub type Nanoseconds = u64;
pub type Nanoseconds = u64;