forked from n3tael/labast
		
	Merge pull request 'Allow _unix_random on not Unix systems.' (#2) from bedohswe/labast:master into master
Reviewed-on: n3tael/labast#2
This commit is contained in:
		
						commit
						dfd21eb42d
					
				@ -133,6 +133,9 @@ pub fn execute(stack: &mut Stack, mut origin_stack: Option<&mut Stack>, mod_name
 | 
				
			|||||||
            #[cfg(target_family = "unix")] 
 | 
					            #[cfg(target_family = "unix")] 
 | 
				
			||||||
            "_unix_random" => instructions::_unix_random::_unix_random(&mut stack.memory),
 | 
					            "_unix_random" => instructions::_unix_random::_unix_random(&mut stack.memory),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            #[cfg(not(target_family = "unix"))] 
 | 
				
			||||||
 | 
					            "_unix_random" => instructions::random::random(&mut stack.memory),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Labast-specific
 | 
					            // Labast-specific
 | 
				
			||||||
            "random" => instructions::random::random(&mut stack.memory),
 | 
					            "random" => instructions::random::random(&mut stack.memory),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -142,4 +145,4 @@ pub fn execute(stack: &mut Stack, mut origin_stack: Option<&mut Stack>, mod_name
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user