분류 전체보기
-
xcode 에서 Anddress Sanitizer 사용시 옵션 설정 하기개발/iOS 2018. 4. 18. 11:10
xcode 에서 정식으로 지원하는 기능 근데 원래 프로젝트는 github 에 있는걸 가져온것 같다. https://github.com/google/sanitizers 글주제인 옵션같은 경우 프로젝트 main.m 에다가 다음 코드를 삽입하여 셋팅하면된다. __attribute__((visibility("default"))) __attribute__((no_sanitize_address)) FOUNDATION_EXPORT const char* __asan_default_options(void); FOUNDATION_EXPORT const char* __asan_default_options(void) { return "verbosity=1:detect_odr_violation=0"; } 이상한 코드처럼 보이지..
-
curl 로 firebase 메시지 보내기카테고리 없음 2018. 3. 8. 14:33
공홈에도 잘 나와 있긴한데 편하게 가져다 쓰기 위해 정리해둔다. 테스트 Push 메시지용 배치파일 만들기 이 Section은 Push 테스트를 하기 위해 푸시 메시지를 계속 단말기에 보낼때 테스트 환경에서 사용하길 권장한다. 또한 이러한 테스트는 라이브 서비스중인 환경에서는 사용자들에게 푸시가 전송 될 수 있기 때문에 각별한 주의가 필요하다. fcm_test.bat curl -X POST -H "Content-Type:application/json" -H "Authorization:key= 여기에 FCM 서버키를 넣음" -k "https://fcm.googleapis.com/fcm/send" --data "@fcm_test.json" 위와 같이하려면 따로 fcm_test.json 이라는 파일이 추가로 필..
-
c++11 표준 UTF8 인코딩카테고리 없음 2018. 3. 2. 11:33
std::wstring temp; temp.resize(str.size()); std::locale prevLocale = std::locale::global(std::locale("")); temp.resize(std::mbstowcs(&temp[0], &str[0], str.size())); std::wstring_convert convert; str = convert.to_bytes(temp); std::locale::global(prevLocale); 근데 C++17 에 deprecated 크리먹음 ㅠㅠ
-
codecvt 을 이용한 std::string <-> std::wstring 상호 변환 (utf8)카테고리 없음 2018. 3. 1. 01:13
먼저 이걸 해주고 std::local::global(std::locale("")); std::wstring mbs_to_wcs(std::string const& str, std::locale const& loc = std::locale("")) { typedef std::codecvt codecvt_t; codecvt_t const& codecvt = std::use_facet(loc); std::mbstate_t state = 0; std::vector buf(str.size() + 1); char const* in_next = str.c_str(); wchar_t* out_next = &buf[0]; codecvt_t::result r = codecvt.in(state, str.c_str(), str..
-
TableViewNode카테고리 없음 2017. 12. 18. 18:58
#include "stod/precompiled.h" #include "stod/TableViewNode.h" #include "stod/Property.h" #include "stod/Kernel.h" #include "stod/TimeMgr.h" namespace stod { //---------------------------------------------------------------------------- const char* TableViewNode::EVENT_LOAD_PREV_PAGE = "EVENT_LOAD_PREV_PAGE"; const char* TableViewNode::EVENT_LOAD_NEXT_PAGE = "EVENT_LOAD_NEXT_PAGE"; //------------..
-
cmake 로 assimp 의 VisualStudio 프로젝트 생성카테고리 없음 2017. 12. 3. 17:28
assimp 를 git 으로 clone 받아서 하라는데로 cmake CMakeLists.txt 해보면 안된다. 그러면 cmd.exe 를 실행시켜서 assimp 루트 디렉토리에서 다음과 같이 하면 된다.(x64 컴파일 기준) 1. 환경변수를 셋팅 (배치파일을 실행)C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat 2. cmake 를 실행cmake -DCMAKE_C_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" -DCMAKE_CXX_COMPILER="C:/Program Files (x86)/Microsoft Visual..
-
CppCon 2017 : Scott Wardle "EA's Secret Weapon: Packages and Modules 번역카테고리 없음 2017. 10. 12. 10:06
System 프로그램이란?: 벤치마킹에 의해 측정가능한것을 더 좋게 만드는 것ex) framerate 빠르게, 로딩타임, 빌드타임, 메모리 또는 디스크 사용량을 더 적게: 주로 다른 팀의 기술적인 이슈들을 처리, 코드를 공유하고 유지함 C++ Modules : 느린 빌드타임을 해결: 공유를 어렵게하는 나쁜 interface 를 해결 모두들 BuildSystem 은 싫어함 ㅋ C++ modules != PackagePacakage 개념 속에 modules 이 있는 것임pacakage 는 C++ lib 또는 dll 임 EA 에서 게임 만들때: 많은 종류의 크로스 플랫폼 컴파일이 지원되어야 함- gcc, clang, msvc++, GreenHiless, etc ...: 빌드 Configuration 을 위한 ..