mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	generator.h: use GET_STATE_TO
* ext/json/generator/generator.h (GENERATE_JSON): use GET_STATE_TO macro, instead of TypedData_Get_Struct directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									34fbf57aaa
								
							
						
					
					
						commit
						cc5b3577a0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -92,7 +92,7 @@ typedef struct JSON_Generator_StateStruct { | |||
|                                                                                                 \ | ||||
|     rb_scan_args(argc, argv, "01", &Vstate);                                                    \ | ||||
|     Vstate = cState_from_state_s(cState, Vstate);                                               \ | ||||
|     TypedData_Get_Struct(Vstate, JSON_Generator_State, &JSON_Generator_State_type, state);	\ | ||||
|     GET_STATE_TO(Vstate, state);								\ | ||||
|     buffer = cState_prepare_buffer(Vstate);                                                     \ | ||||
|     generate_json_##type(buffer, Vstate, state, self);                                          \ | ||||
|     return fbuffer_to_s(buffer) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu