Skip to content

Instantly share code, notes, and snippets.

#0 ___chkstk_ms ()
at ../../../../../src/gcc-4.9.1/libgcc/config/i386/cygwin.S:146
#1 0x000000000041b65e in vel0city::vertex_array_object::get_vertex_array_object<u16> (display=0x18f830, vertex_buffers=..., indices=0x18d6d0,
program=0x301c110)
at C:\Users\Nathaniel\.cargo\git\checkouts\glium-cee1c79709e4d1bd\master\src/vertex_array_object.rs:240
#2 0x0000000000416b0b in vel0city::ops::draw::draw<u16,&glium::uniforms::uniforms::UniformsStorage<core::iter::Chain<core::option::IntoIter<(&str, glium::uniforms::value::UniformValue)>, core::option::IntoIter<(&str, glium::uniforms::value::UniformValue)>>>,&glium::vertex::buffer::VertexBuffer<vel0city::graphics::Vertex>> (display=0x18f830, framebuffer=..., vertex_buffers=<optimized out>,
indices=..., program=<optimized out>, uniforms=<optimized out>,
draw_parameters=<optimized out>, dimensions=...)
at C:\Users\Nathaniel\.cargo\git\checkouts\glium-cee1c79709e4d1bd\master\src\ops/draw.rs:99
#3 0x00000000004154a4 in draw<&glium::vertex::buffe

so you want to have a Tank, and then you have different sub-tanks which have different AIs, yeah? and all the AIs need their own state

pub struct Tank<A> {
    pub pos: f32
    pub health: u32,
    pub ai: A
}
impl<A: TankAi> Tank<A> {
 fn think(&amp;mut self) { <a as="" tankai="">::think(self) }</a>

so you got some structs, right?

struct Foo<'a> {
    x: &'a String
}
struct Bar<'b> {
    y: &'b String
}   
note: in expansion of #[derive]
ncollide_entities\inspection\repr.rs:6:1: 6:16 note: expansion site
ncollide_entities\shape\base_mesh.rs:17:33: 17:34 error: parameter `E` is never used
ncollide_entities\shape\base_mesh.rs:17 pub struct BaseMesh<N, P, V, I, E> {
^
ncollide_entities\shape\base_mesh.rs:17:33: 17:34 help: consider removing `E` or using a marker such as `core::marker::P
hantomData`
ncollide_entities\shape\base_mesh.rs:17 pub struct BaseMesh<N, P, V, I, E> {
^
ncollide_entities\inspection\repr.rs:59:16: 59:17 error: parameter `N` is never used
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h
index 46f87b9..1863a84 100644
--- a/include/llvm/Target/TargetLibraryInfo.h
+++ b/include/llvm/Target/TargetLibraryInfo.h
@@ -371,6 +371,10 @@ namespace llvm {
isascii,
/// int isdigit(int c);
isdigit,
+ /// void *je_mallocx(size_t size, int flags);
+ je_mallocx,
.text
.def _ZN3lol20h18ff950b148ec5d3eaaE;
.scl 2;
.type 32;
.endef
.globl _ZN3lol20h18ff950b148ec5d3eaaE
.align 16, 0x90
_ZN3lol20h18ff950b148ec5d3eaaE: # @_ZN3lol20h18ff950b148ec5d3eaaE
.Ltmp11:
.seh_proc _ZN3lol20h18ff950b148ec5d3eaaE
float rand(vec2 co){
float k = fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);
return texture2D(iChannel0, vec2(k, co.y)).z;
}
float slowrand(vec2 co) {
float a, b;
a = rand(co);
b = rand(vec2(co.x, a));
eedstack_1:
movabsq $72, %r10
movabsq $0, %r11
int $3
retq
.align 0x20
the_function_1:
cmpq $0, %rsp
jbe needstack_1
.rept 40
.needstack:
movabsq $72, %r10
movabsq $0, %r11
callq __morestack
retq
; padding to align...
the_function:
cmpq %fs:112, %rsp
jbe .needstack
; body
pub struct Context<'a> {
pub glfw : Option<::glfw::Glfw>,
pub window : Option<::glfw::Window>,
pub events : Option<Receiver<(f64, ::glfw::WindowEvent)>>,
pub device : Option<::gfx::GlDevice>,
pub graphics : Option<
Box<
::gfx::Graphics<
::gfx::GlDevice,
::gfx::GlCommandBuffer