OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include "src/vm/fletch_api_impl.h" | 7 #include "src/vm/fletch_api_impl.h" |
8 | 8 |
9 #include "src/shared/assert.h" | 9 #include "src/shared/assert.h" |
10 #ifdef FLETCH_ENABLE_LIVE_CODING | 10 #ifdef FLETCH_ENABLE_LIVE_CODING |
11 #include "src/shared/connection.h" | 11 #include "src/shared/connection.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 fletch::Print::RegisterPrintInterceptor(impl); | 193 fletch::Print::RegisterPrintInterceptor(impl); |
194 return reinterpret_cast<void*>(impl); | 194 return reinterpret_cast<void*>(impl); |
195 } | 195 } |
196 | 196 |
197 void FletchUnregisterPrintInterceptor(FletchPrintInterceptor raw_interceptor) { | 197 void FletchUnregisterPrintInterceptor(FletchPrintInterceptor raw_interceptor) { |
198 fletch::PrintInterceptorImpl* impl = | 198 fletch::PrintInterceptorImpl* impl = |
199 reinterpret_cast<fletch::PrintInterceptorImpl*>(raw_interceptor); | 199 reinterpret_cast<fletch::PrintInterceptorImpl*>(raw_interceptor); |
200 fletch::Print::UnregisterPrintInterceptor(impl); | 200 fletch::Print::UnregisterPrintInterceptor(impl); |
201 delete impl; | 201 delete impl; |
202 } | 202 } |
OLD | NEW |