Skip to content

Commit f31c48f

Browse files
committed
Remove section pushes
1 parent cb3e5dd commit f31c48f

6 files changed

Lines changed: 0 additions & 51 deletions

File tree

imgui.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,6 @@ CODE
771771
#include "imgui.h"
772772
#ifndef IMGUI_DISABLE
773773

774-
#if defined(__clang__)
775-
#pragma clang attribute push (__attribute__((section(".imgui.text"))), apply_to=function)
776-
#endif
777-
778774
#ifndef IMGUI_DEFINE_MATH_OPERATORS
779775
#define IMGUI_DEFINE_MATH_OPERATORS
780776
#endif
@@ -11749,9 +11745,5 @@ void ImGui::DebugNodeViewport(ImGuiViewportP*) {}
1174911745

1175011746
//-----------------------------------------------------------------------------
1175111747

11752-
#if defined(__clang__)
11753-
#pragma clang attribute pop
11754-
#endif
11755-
1175611748

1175711749
#endif // #ifndef IMGUI_DISABLE

imgui.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ Index of this file:
4646
#include "imconfig.h"
4747
#endif
4848

49-
#if defined(__clang__)
50-
#pragma clang attribute push (__attribute__((section(".imgui.text"))), apply_to=function)
51-
#endif
52-
5349
#ifndef IMGUI_DISABLE
5450

5551
//-----------------------------------------------------------------------------
@@ -2874,8 +2870,4 @@ enum ImDrawCornerFlags_
28742870
#include "imgui_user.h"
28752871
#endif
28762872

2877-
#if defined(__clang__)
2878-
#pragma clang attribute pop
2879-
#endif
2880-
28812873
#endif // #ifndef IMGUI_DISABLE

imgui_draw.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ Index of this file:
2929
#include "imgui.h"
3030
#ifndef IMGUI_DISABLE
3131

32-
#if defined(__clang__)
33-
#pragma clang attribute push (__attribute__((section(".imgui.text"))), apply_to=function)
34-
#endif
35-
3632
#ifndef IMGUI_DEFINE_MATH_OPERATORS
3733
#define IMGUI_DEFINE_MATH_OPERATORS
3834
#endif
@@ -4191,9 +4187,4 @@ static const char* GetDummyFont()
41914187
return dummy_font;
41924188
}
41934189

4194-
#if defined(__clang__)
4195-
#pragma clang attribute pop
4196-
#endif
4197-
4198-
41994190
#endif // #ifndef IMGUI_DISABLE

imgui_internal.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ Index of this file:
3838
#pragma once
3939
#ifndef IMGUI_DISABLE
4040

41-
#if defined(__clang__)
42-
#pragma clang attribute push (__attribute__((section(".imgui.text"))), apply_to=function)
43-
#endif
44-
4541
//-----------------------------------------------------------------------------
4642
// [SECTION] Header mess
4743
//-----------------------------------------------------------------------------
@@ -2701,9 +2697,5 @@ extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt,
27012697
#pragma warning (pop)
27022698
#endif
27032699

2704-
#if defined(__clang__)
2705-
#pragma clang attribute pop
2706-
#endif
2707-
27082700

27092701
#endif // #ifndef IMGUI_DISABLE

imgui_tables.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ Index of this file:
191191
#include "imgui.h"
192192
#ifndef IMGUI_DISABLE
193193

194-
#if defined(__clang__)
195-
#pragma clang attribute push (__attribute__((section(".imgui.text"))), apply_to=function)
196-
#endif
197-
198194
#ifndef IMGUI_DEFINE_MATH_OPERATORS
199195
#define IMGUI_DEFINE_MATH_OPERATORS
200196
#endif
@@ -4033,9 +4029,4 @@ void ImGui::Columns(int columns_count, const char* id, bool border)
40334029

40344030
//-------------------------------------------------------------------------
40354031

4036-
#if defined(__clang__)
4037-
#pragma clang attribute pop
4038-
#endif
4039-
4040-
40414032
#endif // #ifndef IMGUI_DISABLE

imgui_widgets.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ Index of this file:
3535
#include "imgui.h"
3636
#ifndef IMGUI_DISABLE
3737

38-
#if defined(__clang__)
39-
#pragma clang attribute push (__attribute__((section(".imgui.text"))), apply_to=function)
40-
#endif
41-
4238
#ifndef IMGUI_DEFINE_MATH_OPERATORS
4339
#define IMGUI_DEFINE_MATH_OPERATORS
4440
#endif
@@ -8101,9 +8097,4 @@ void ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb,
81018097
*out_just_closed = close_button_pressed;
81028098
}
81038099

8104-
#if defined(__clang__)
8105-
#pragma clang attribute pop
8106-
#endif
8107-
8108-
81098100
#endif // #ifndef IMGUI_DISABLE

0 commit comments

Comments
 (0)