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
/
common.rs
diff --git
a/src/common.rs
b/src/common.rs
index
f3b3373
..
6f000d8
100644
(file)
--- a/
src/common.rs
+++ b/
src/common.rs
@@
-1,5
+1,6
@@
use std::ops::{Add, AddAssign};
+#[macro_export]
macro_rules! point {
( $x:expr, $y:expr ) => { Point2D { x:$x, y:$y } };
}