mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ML API: bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									05af33ac7d
								
							
						
					
					
						commit
						5937141605
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1254,7 +1254,7 @@ def mk_ml():
 | 
			
		|||
                ml_native.write(' a%d' % i)
 | 
			
		||||
            i = i + 1
 | 
			
		||||
        ml_native.write(') in\n')
 | 
			
		||||
        if len(params) > 0 and param_type(params[0]) == CONTEXT:
 | 
			
		||||
        if name not in Unwrapped and len(params) > 0 and param_type(params[0]) == CONTEXT:
 | 
			
		||||
            ml_native.write('    let err = (error_code_of_int (ML2C.n_get_error_code a0)) in \n')
 | 
			
		||||
            ml_native.write('      if err <> OK then\n')
 | 
			
		||||
            ml_native.write('        raise (Exception (ML2C.n_get_error_msg_ex a0 (int_of_error_code err)))\n')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue