git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: rename generated thunk value var name
commit5a9555899e0b72a492318bda3416542f295d31c6 authorAndy Arvanitis <andyarvanitis@gmail.com> dateTue 19 Apr 2016, 21:26 (11 years ago) parent96459c0
1 file changed+2−2
src/Language/PureScript/CodeGen/Cpp/File.hs+2−2
src/Language/PureScript/CodeGen/Cpp/File.hs+2−2
@@ -113,8 +113,8 @@ toBody = catMaybes . map go
113113 go (CppVariableIntroduction (name, _) _ (Just cpp)) =
114114 Just $ CppVariableIntroduction (name, Just $ CppAny [CppConst]) [] (Just lambda)
115115 where
116− val = CppVariableIntroduction ("_value_", Just $ CppAny [CppConst]) [CppStatic] (Just $ addCaptures cpp)
117− block = CppBlock [val, CppReturn (CppVar "_value_")]
116+ val = CppVariableIntroduction ("$value$", Just $ CppAny [CppConst]) [CppStatic] (Just $ addCaptures cpp)
117+ block = CppBlock [val, CppReturn (CppVar "$value$")]
118118 lambda = CppLambda [] [("", Just $ thunkMarkerType)] (Just $ CppAny [CppConst, CppRef]) block
119119 addCaptures :: Cpp -> Cpp
120120 addCaptures (CppObjectLiteral objs) = CppObjectLiteral (objlam <$> objs)