Skip to content

Conversation

@tyabus
Copy link

@tyabus tyabus commented May 31, 2019

No description provided.

size_t result;

result = _vsnprintf( buffer, buffersize, format, args );
result = vsnprintf( buffer, buffersize, format, args );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше такое в #ifdef _WIN32 оборачивать.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я знаю, но там всего лишь warning

Copy link
Member

@nekonomicon nekonomicon May 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Под msvc6?
Это расширение MS.
vsnprintf в С99 ввели.
Можно обойтись дефайном же.

#ifndef _WIN32
#define _vsnprintf vsnprintf
#endif // _WIN32

или опцию сборки добавить -D_vsnprintf=vsnprintf.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это win32-only варнинг

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Интересно, какая реакция будет на warning о пропущенном виртуальном деструкторе или вызове delete без квадратных скобок для динамического массива?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Интересно, какая реакция будет на warning о пропущенном виртуальном деструкторе или вызове delete без квадратных скобок для динамического массива?

https://youtu.be/1ExYXiRuG6o

@a1batross
Copy link
Member

Вообще у меня уже давно порт был. Просто я его не выклвдывал, да и он чутка грязноват -- я начал делать VBO рендерер по просьбе ДМ и так не осилил доделать.

@tyabus
Copy link
Author

tyabus commented May 31, 2019

Done.

@a1batross
Copy link
Member

pyc закидывать не надо. Это файлы создаваемые питоном в процессе работы. Удали и в .gitignore.

@tyabus
Copy link
Author

tyabus commented Jun 1, 2019

pyc закидывать не надо. Это файлы создаваемые питоном в процессе работы. Удали и в .gitignore.

Я уже удалил, щас закину в .gitignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants