mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:22:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Types.h>
 | |
| #include <LibJS/Forward.h>
 | |
| 
 | |
| namespace JS {
 | |
| 
 | |
| struct EnvironmentCoordinate {
 | |
|     u32 hops { invalid_marker };
 | |
|     u32 index { invalid_marker };
 | |
| 
 | |
|     bool is_valid() const { return hops != invalid_marker && index != invalid_marker; }
 | |
| 
 | |
|     static constexpr u32 invalid_marker = 0xfffffffe;
 | |
| };
 | |
| 
 | |
| }
 | 
